diff --git a/src/dialogs/enter-code/dialog-enter-code.ts b/src/dialogs/enter-code/dialog-enter-code.ts index 5a76df3e64..933567705e 100644 --- a/src/dialogs/enter-code/dialog-enter-code.ts +++ b/src/dialogs/enter-code/dialog-enter-code.ts @@ -40,8 +40,13 @@ export class DialogEnterCode @state() private _showClearButton = false; + @state() private _narrow = false; + public async showDialog(dialogParams: EnterCodeDialogParams): Promise { this._dialogParams = dialogParams; + this._narrow = matchMedia( + "all and (max-width: 450px), all and (max-height: 500px)" + ).matches; await this.updateComplete; } @@ -96,7 +101,7 @@ export class DialogEnterCode >
${BUTTONS.map((value) =>