diff --git a/src/webpage/settings.ts b/src/webpage/settings.ts index 21c6298..e74ddb9 100644 --- a/src/webpage/settings.ts +++ b/src/webpage/settings.ts @@ -1522,7 +1522,7 @@ class Captcha implements OptionsElement { const float = new Dialog("", {noSubmit: true}); float.options.addTitle(I18n.form.captcha()); const cap = float.options.addForm("", () => {}, {traditionalSubmit: true}).addCaptcha(); - float.show(); + float.show().parentElement!.style.zIndex = "200"; const ret = cap.makeCaptcha(json); await ret; float.hide(); @@ -1608,7 +1608,7 @@ async function handle2fa(json: any, api: string): Promise { e.ticket = json.ticket; }); const ti = form.addTextInput("", "code"); - better.show(); + better.show().parentElement!.style.zIndex = "200"; }); } } else {