[PM-6825] Use tailwind for vault icon styling

This commit is contained in:
Shane Melton 2024-05-17 13:52:42 -07:00
parent 72c77ed95d
commit e3efe8c18e
No known key found for this signature in database
2 changed files with 13 additions and 1 deletions

View File

@ -577,6 +577,17 @@ app-vault-view .box-footer {
user-select: auto;
}
/* override for vault icon in desktop */
app-vault-icon > div {
display: flex;
justify-content: center;
align-items: center;
float: left;
height: 36px;
width: 34px;
margin-left: -5px;
}
/* tweak for inconsistent line heights in cipher view */
.box-footer button,
.box-footer a {

View File

@ -1,9 +1,10 @@
<div class="icon" aria-hidden="true">
<div class="tw-flex tw-justify-center tw-items-center" aria-hidden="true">
<ng-container *ngIf="data$ | async as data">
<img
[src]="data.image"
[appFallbackSrc]="data.fallbackImage"
*ngIf="data.imageEnabled && data.image"
class="tw-max-h-6 tw-max-w-6 tw-rounded-md"
alt=""
decoding="async"
loading="lazy"