mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PS-1674] Correct truncation of ciphers in browser (#3792)
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
<app-vault-icon [cipher]="cipher"></app-vault-icon>
|
<app-vault-icon [cipher]="cipher"></app-vault-icon>
|
||||||
<div class="row-main-content">
|
<div class="row-main-content">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
{{ cipher.name | ellipsis: 20 }}
|
<span class="truncate-box">
|
||||||
|
<span class="truncate">{{ cipher.name }}</span>
|
||||||
<ng-container *ngIf="cipher.organizationId">
|
<ng-container *ngIf="cipher.organizationId">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-collection text-muted"
|
class="bwi bwi-collection text-muted"
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
</span>
|
||||||
<span class="detail">{{ cipher.subTitle }}</span>
|
<span class="detail">{{ cipher.subTitle }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -692,3 +692,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.truncate-box {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.truncate {
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
<app-vault-icon [cipher]="c"></app-vault-icon>
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
||||||
<div class="flex-cipher-list-item">
|
<div class="flex-cipher-list-item">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
{{ c.name | ellipsis }}
|
<span class="truncate-box">
|
||||||
|
<span class="truncate">{{ c.name }}</span>
|
||||||
<ng-container *ngIf="c.organizationId">
|
<ng-container *ngIf="c.organizationId">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-collection text-muted"
|
class="bwi bwi-collection text-muted"
|
||||||
@@ -42,6 +43,7 @@
|
|||||||
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
</span>
|
||||||
<span *ngIf="c.subTitle" class="detail">{{ c.subTitle }}</span>
|
<span *ngIf="c.subTitle" class="detail">{{ c.subTitle }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -152,3 +152,16 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.truncate-box {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.truncate {
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user