[PS-1674] Correct truncation of ciphers in browser (#3792)
This commit is contained in:
parent
930359fb18
commit
a9ebed0d8d
|
@ -15,23 +15,25 @@
|
||||||
<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">
|
||||||
<ng-container *ngIf="cipher.organizationId">
|
<span class="truncate">{{ cipher.name }}</span>
|
||||||
<i
|
<ng-container *ngIf="cipher.organizationId">
|
||||||
class="bwi bwi-collection text-muted"
|
<i
|
||||||
title="{{ 'shared' | i18n }}"
|
class="bwi bwi-collection text-muted"
|
||||||
aria-hidden="true"
|
title="{{ 'shared' | i18n }}"
|
||||||
></i>
|
aria-hidden="true"
|
||||||
<span class="sr-only">{{ "shared" | i18n }}</span>
|
></i>
|
||||||
</ng-container>
|
<span class="sr-only">{{ "shared" | i18n }}</span>
|
||||||
<ng-container *ngIf="cipher.hasAttachments">
|
</ng-container>
|
||||||
<i
|
<ng-container *ngIf="cipher.hasAttachments">
|
||||||
class="bwi bwi-paperclip text-muted"
|
<i
|
||||||
title="{{ 'attachments' | i18n }}"
|
class="bwi bwi-paperclip text-muted"
|
||||||
aria-hidden="true"
|
title="{{ 'attachments' | i18n }}"
|
||||||
></i>
|
aria-hidden="true"
|
||||||
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
></i>
|
||||||
</ng-container>
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
||||||
|
</ng-container>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="detail">{{ cipher.subTitle }}</span>
|
<span class="detail">{{ cipher.subTitle }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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,23 +24,25 @@
|
||||||
<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">
|
||||||
<ng-container *ngIf="c.organizationId">
|
<span class="truncate">{{ c.name }}</span>
|
||||||
<i
|
<ng-container *ngIf="c.organizationId">
|
||||||
class="bwi bwi-collection text-muted"
|
<i
|
||||||
title="{{ 'shared' | i18n }}"
|
class="bwi bwi-collection text-muted"
|
||||||
aria-hidden="true"
|
title="{{ 'shared' | i18n }}"
|
||||||
></i>
|
aria-hidden="true"
|
||||||
<span class="sr-only">{{ "shared" | i18n }}</span>
|
></i>
|
||||||
</ng-container>
|
<span class="sr-only">{{ "shared" | i18n }}</span>
|
||||||
<ng-container *ngIf="c.hasAttachments">
|
</ng-container>
|
||||||
<i
|
<ng-container *ngIf="c.hasAttachments">
|
||||||
class="bwi bwi-paperclip text-muted"
|
<i
|
||||||
title="{{ 'attachments' | i18n }}"
|
class="bwi bwi-paperclip text-muted"
|
||||||
aria-hidden="true"
|
title="{{ 'attachments' | i18n }}"
|
||||||
></i>
|
aria-hidden="true"
|
||||||
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
></i>
|
||||||
</ng-container>
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
||||||
|
</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>
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue