mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
[PM-1541] Adjust the dialogs max-width (#5036)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div
|
||||
class="tw-flex tw-w-full tw-flex-col tw-self-center tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-secondary-300 tw-bg-background tw-text-main"
|
||||
[ngClass]="width"
|
||||
class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-secondary-300 tw-bg-background tw-text-main"
|
||||
@fadeIn
|
||||
>
|
||||
<div
|
||||
|
||||
@@ -19,18 +19,22 @@ export class DialogComponent {
|
||||
return this._disablePadding;
|
||||
}
|
||||
|
||||
@HostBinding("class") classes = ["tw-flex", "tw-flex-col", "tw-py-4", "tw-max-h-screen"];
|
||||
@HostBinding("class") get classes() {
|
||||
return ["tw-flex", "tw-flex-col", "tw-max-h-screen", "tw-w-screen", "tw-p-4"].concat(
|
||||
this.width
|
||||
);
|
||||
}
|
||||
|
||||
get width() {
|
||||
switch (this.dialogSize) {
|
||||
case "small": {
|
||||
return "tw-w-96";
|
||||
return "tw-max-w-sm";
|
||||
}
|
||||
case "large": {
|
||||
return "tw-w-75vw";
|
||||
return "tw-max-w-3xl";
|
||||
}
|
||||
default: {
|
||||
return "tw-w-50vw";
|
||||
return "tw-max-w-xl";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user