1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

[PM-10799] Login UI Width (#10506)

* reset `maxWidth` attribute during page change

* set default value for `maxWidth` if null or undefined is passed

* implement `maxWidth` for extension implementation of Anon Layout
This commit is contained in:
Nick Krantz
2024-08-13 14:18:04 -05:00
committed by GitHub
parent c3d7da06b8
commit a6176aaf2c
4 changed files with 7 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ export class AnonLayoutWrapperComponent implements OnInit, OnDestroy {
this.pageSubtitle = null;
this.pageIcon = null;
this.showReadonlyHostname = null;
this.maxWidth = null;
}
ngOnDestroy() {

View File

@@ -76,6 +76,10 @@ export class AnonLayoutComponent implements OnInit, OnChanges {
const theme = await firstValueFrom(this.themeStateService.selectedTheme$);
await this.updateIcon(theme);
}
if (changes.maxWidth) {
this.maxWidth = changes.maxWidth.currentValue ?? "md";
}
}
private async updateIcon(theme: string) {