mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
Add flexbox to cipher list to correct display center issue.
This commit is contained in:
parent
20b8a83dd8
commit
0c12367721
@ -12,8 +12,9 @@
|
|||||||
(scrolled)="loadMore()">
|
(scrolled)="loadMore()">
|
||||||
<a *ngFor="let c of filteredCiphers" appStopClick (click)="selectCipher(c)"
|
<a *ngFor="let c of filteredCiphers" appStopClick (click)="selectCipher(c)"
|
||||||
(contextmenu)="rightClickCipher(c)" href="#" title="{{'viewItem' | i18n}}"
|
(contextmenu)="rightClickCipher(c)" href="#" title="{{'viewItem' | i18n}}"
|
||||||
[ngClass]="{'active': c.id === activeCipherId}">
|
[ngClass]="{'active': c.id === activeCipherId}" class="flex-list-item">
|
||||||
<app-vault-icon [cipher]="c"></app-vault-icon>
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
||||||
|
<a class='flex-cipher-list-item'>
|
||||||
<span class="text">
|
<span class="text">
|
||||||
{{c.name}}
|
{{c.name}}
|
||||||
<ng-container *ngIf="c.organizationId">
|
<ng-container *ngIf="c.organizationId">
|
||||||
@ -25,7 +26,8 @@
|
|||||||
<span class="sr-only">{{'attachments' | i18n}}</span>
|
<span class="sr-only">{{'attachments' | i18n}}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
<span class="detail">{{c.subTitle}}</span>
|
<span *ngIf="c.subTitle" class="detail">{{c.subTitle}}</span>
|
||||||
|
</a>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="no-items" *ngIf="!filteredCiphers.length">
|
<div class="no-items" *ngIf="!filteredCiphers.length">
|
||||||
|
@ -130,4 +130,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-cipher-list-item {
|
||||||
|
flex-direction: column;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user