1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-30 12:54:31 +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" cdkConnectedOverlayMinWidth="250px"
> >
<div class="account-switcher-dropdown" [@transformPanel]="'open'"> <div class="account-switcher-dropdown" [@transformPanel]="'open'">
<div class="accounts"> <div class="accounts" *ngIf="numberOfAccounts > 0">
<a <a
*ngFor="let a of accounts | keyvalue" *ngFor="let a of accounts | keyvalue"
class="account" class="account"
@ -65,7 +65,7 @@
></i> ></i>
</a> </a>
</div> </div>
<div class="border"></div> <div class="border" *ngIf="numberOfAccounts > 0"></div>
<ng-container *ngIf="numberOfAccounts < 4"> <ng-container *ngIf="numberOfAccounts < 4">
<a class="add" routerLink="/login" (click)="toggle()"> <a class="add" routerLink="/login" (click)="toggle()">
<i class="fa fa-plus" aria-hidden="true"></i> {{ "addAccount" | i18n }} <i class="fa fa-plus" aria-hidden="true"></i> {{ "addAccount" | i18n }}