1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-28 12:35:40 +01:00

Hide account switcher border if no accounts (#1254)

This commit is contained in:
Oscar Hinton 2022-01-21 17:57:09 +01:00 committed by GitHub
parent cb4e6debf3
commit a64273f829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@
cdkConnectedOverlayMinWidth="250px"
>
<div class="account-switcher-dropdown" [@transformPanel]="'open'">
<div class="accounts">
<div class="accounts" *ngIf="numberOfAccounts > 0">
<a
*ngFor="let a of accounts | keyvalue"
class="account"
@ -65,7 +65,7 @@
></i>
</a>
</div>
<div class="border"></div>
<div class="border" *ngIf="numberOfAccounts > 0"></div>
<ng-container *ngIf="numberOfAccounts < 4">
<a class="add" routerLink="/login" (click)="toggle()">
<i class="fa fa-plus" aria-hidden="true"></i> {{ "addAccount" | i18n }}