1
0
mirror of https://github.com/bitwarden/web synced 2025-12-16 08:13:22 +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> </app-vault-groupings>
</div> </div>
<div class="col-6"> <div [ngClass]="{ 'col-6': isShowingCards, 'col-9': !isShowingCards }">
<div class="page-header d-flex"> <div class="page-header d-flex">
<h1> <h1>
{{ "vaultItems" | i18n }} {{ "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() { ngOnDestroy() {
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId); this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
} }