diff --git a/src/app/layout/account-switcher.component.html b/src/app/layout/account-switcher.component.html index aa65cd464c..a3ea247865 100644 --- a/src/app/layout/account-switcher.component.html +++ b/src/app/layout/account-switcher.component.html @@ -1,9 +1,12 @@ - {{ activeAccountEmail }} @@ -24,26 +28,33 @@ aria-hidden="true" [ngClass]="{ 'bwi-angle-down': !isOpen, 'bwi-chevron-up': isOpen }" > - + - + 0"> - - {{ a.value.profile.email }} - {{ + {{ a.value.profile.email }} + {{ a.value.serverUrl }} - {{ a.value.profile.authenticationStatus }} + {{ a.value.profile.authenticationStatus }} - + 0"> - + {{ "addAccount" | i18n }} - + {{ "accountSwitcherLimitReached" | i18n }} diff --git a/src/app/layout/account-switcher.component.ts b/src/app/layout/account-switcher.component.ts index ed7de861bc..21685c3b49 100644 --- a/src/app/layout/account-switcher.component.ts +++ b/src/app/layout/account-switcher.component.ts @@ -107,14 +107,18 @@ export class AccountSwitcherComponent implements OnInit { this.isOpen = !this.isOpen; } + close() { + this.isOpen = false; + } + async switch(userId: string) { - this.toggle(); + this.close(); this.messagingService.send("switchAccount", { userId: userId }); } async addAccount() { - this.toggle(); + this.close(); await this.stateService.setActiveUser(null); } diff --git a/src/scss/header.scss b/src/scss/header.scss index 0c2486f9aa..0133dc6cc6 100644 --- a/src/scss/header.scss +++ b/src/scss/header.scss @@ -80,6 +80,10 @@ height: 100%; user-select: none; + border: none; + background: transparent; + width: auto; + @include themify($themes) { color: themed("accountSwitcherTextColor"); } @@ -114,9 +118,11 @@ 0 1px 5px 0 rgba(0, 0, 0, 0.2); border-radius: $border-radius; - a { + button { + border: none; + background: transparent; + width: 100%; padding: 5px 10px; - display: block; @include themify($themes) { color: themed("textColor"); @@ -141,6 +147,7 @@ .accountInfo { display: grid; + text-align: left; .email { font-size: $font-size-base; @@ -173,6 +180,7 @@ .add { margin: 4px 0; + text-align: left; } .accountLimitReached {