From 58909d2d1946ee035758f934b0bad5dc93f7354e Mon Sep 17 00:00:00 2001 From: smail Date: Fri, 18 Sep 2026 22:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E5=8A=A8=E6=80=81=E7=A0=81?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E9=A1=B5=E9=9D=A2=E5=B9=B6=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E5=BE=85=E7=A1=AE=E8=AE=A4=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TOTPSettings/TOTPSettings.css | 45 +++++++++++++++++-- .../TOTPSettings/TOTPSettings.vue | 31 +++++++------ 2 files changed, 58 insertions(+), 18 deletions(-) diff --git a/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.css b/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.css index 0e5676a..3f511cc 100644 --- a/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.css +++ b/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.css @@ -8,18 +8,45 @@ line-height: 1.7; } +.totp-heading { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 12px; + margin-bottom: 20px; +} + +.totp-heading h3 { + margin: 0; +} + .totp-settings .el-alert { margin-bottom: 16px; } -.totp-enrollment img, -.totp-enrollment label, -.totp-enrollment code { +.totp-enrollment img { display: block; - margin: 12px 0; + width: 240px; + max-width: 100%; + height: auto; + aspect-ratio: 1; + margin: 0 0 16px; +} + +.totp-manual { + margin-bottom: 20px; +} + +.totp-manual summary { + width: fit-content; + cursor: pointer; + color: var(--pm-text-secondary); + font-size: 14px; } .totp-enrollment code { + display: block; + margin-top: 12px; padding: 12px; border: 1px solid var(--pm-border-color); border-radius: 8px; @@ -29,6 +56,16 @@ .totp-actions { display: flex; + flex-wrap: wrap; gap: 12px; margin-top: 16px; } + +.totp-actions .el-button + .el-button { + margin-left: 0; +} + +.totp-enrollment .el-form, +.totp-disable { + max-width: 360px; +} diff --git a/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.vue b/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.vue index a5a3a88..cc9fb07 100644 --- a/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.vue +++ b/frontend/src/views/components/SecuritySettings/TOTPSettings/TOTPSettings.vue @@ -1,20 +1,24 @@