1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-14 15:33:55 +00:00
Files
browser/libs/vault/src/cipher-view/attachments/attachments-v2-view.component.html
Jordan Aasen 5927f7f278 [PM-29800] - fix icon alignment in attachment view (#18112)
* fix icon alignment in attachment view

* move class to bit-item-action
2026-01-06 11:34:46 -08:00

25 lines
900 B
HTML

<section class="tw-mb-5 bit-compact:tw-mb-4">
<bit-section-header>
<h2 bitTypography="h6">{{ "attachments" | i18n }}</h2>
</bit-section-header>
<bit-item-group>
<bit-item *ngFor="let attachment of cipher.attachments">
<bit-item-content>
<span data-testid="file-name" [title]="attachment.fileName">{{ attachment.fileName }}</span>
<span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span>
</bit-item-content>
<ng-container slot="end">
<bit-item-action class="tw-pr-4">
<app-download-attachment
[admin]="admin"
[cipher]="cipher"
[attachment]="attachment"
[checkPwReprompt]="true"
[emergencyAccessId]="emergencyAccessId"
></app-download-attachment>
</bit-item-action>
</ng-container>
</bit-item>
</bit-item-group>
</section>