1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

[euvr] Adjust Vault width based on card visibility (#1588)

This commit is contained in:
Vincent Salucci
2022-04-13 07:00:44 -05:00
committed by GitHub
parent 4fd601bdc2
commit 5e85cea01b
2 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
>
</app-vault-groupings>
</div>
<div class="col-6">
<div [ngClass]="{ 'col-6': isShowingCards, 'col-9': !isShowingCards }">
<div class="page-header d-flex">
<h1>
{{ "vaultItems" | i18n }}

View File

@@ -146,6 +146,15 @@ export class VaultComponent implements OnInit, OnDestroy {
});
}
get isShowingCards() {
return (
this.showBrowserOutdated ||
this.showPremiumCallout ||
this.showUpdateKey ||
this.showVerifyEmail
);
}
ngOnDestroy() {
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
}