1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-23 03:22:50 +02:00

add title for attachment name (#10908)

- adds the ability for a user to see the attachment name while hovering over it
This commit is contained in:
Nick Krantz 2024-09-05 14:41:39 -05:00 committed by GitHub
parent 397141b9d9
commit 7dcfaf8271
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<li *ngFor="let attachment of cipher.attachments"> <li *ngFor="let attachment of cipher.attachments">
<bit-item> <bit-item>
<bit-item-content> <bit-item-content>
<span data-testid="file-name">{{ attachment.fileName }}</span> <span data-testid="file-name" [title]="attachment.fileName">{{ attachment.fileName }}</span>
<span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span> <span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span>
</bit-item-content> </bit-item-content>
<ng-container slot="end"> <ng-container slot="end">

View File

@ -5,7 +5,7 @@
<bit-item-group> <bit-item-group>
<bit-item *ngFor="let attachment of cipher.attachments"> <bit-item *ngFor="let attachment of cipher.attachments">
<bit-item-content> <bit-item-content>
<span data-testid="file-name">{{ attachment.fileName }}</span> <span data-testid="file-name" [title]="attachment.fileName">{{ attachment.fileName }}</span>
<span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span> <span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span>
</bit-item-content> </bit-item-content>
<ng-container slot="end"> <ng-container slot="end">