From 2fb009296de178718894abfd5bf26c5c5e35540b Mon Sep 17 00:00:00 2001 From: smail Date: Fri, 16 Oct 2026 05:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E5=85=A8=E7=A0=81?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8D=95=E8=A1=8C=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SecuritySettings/SecuritySettings.css | 65 +++++++++++++++++++ .../RecoveryCodeDialog/RecoveryCodeDialog.css | 53 +++++++++++++++ 2 files changed, 118 insertions(+) diff --git a/frontend/src/views/components/SecuritySettings/SecuritySettings.css b/frontend/src/views/components/SecuritySettings/SecuritySettings.css index 97ef5080..56efc750 100644 --- a/frontend/src/views/components/SecuritySettings/SecuritySettings.css +++ b/frontend/src/views/components/SecuritySettings/SecuritySettings.css @@ -250,3 +250,68 @@ min-width: 0; margin-left: 0 !important; } + +.security-settings-card .security-key-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; +} + +.security-settings-card .security-key-header > :first-child { + min-width: 0; + flex: 1 1 auto; +} + +.security-settings-card .security-key-header > .security-recovery-actions { + display: flex !important; + flex: 0 1 auto !important; + flex-flow: row nowrap !important; + align-items: center !important; + align-content: center !important; + justify-content: flex-end !important; + gap: 8px !important; + width: auto; + max-width: 100%; + min-width: 0 !important; + height: 36px; + min-height: 36px; + overflow-x: auto; + overflow-y: hidden; + padding: 0 0 2px; + box-sizing: border-box; + white-space: nowrap; + scrollbar-width: thin; +} + +.security-settings-card .security-key-header > .security-recovery-actions > :deep(.el-button) { + display: inline-flex !important; + flex: 0 0 auto !important; + align-items: center !important; + justify-content: center !important; + width: max-content; + min-width: max-content; + height: 36px !important; + max-height: 36px; + box-sizing: border-box; + margin: 0 !important; + padding: 0 14px !important; + line-height: 1 !important; + white-space: nowrap !important; + word-break: keep-all !important; + overflow-wrap: normal !important; + writing-mode: horizontal-tb !important; + vertical-align: middle; +} + +@media (max-width: 767px) { + .security-settings-card .security-key-header { + display: flex; + align-items: stretch; + } + + .security-settings-card .security-key-header > .security-recovery-actions { + width: 100%; + justify-content: flex-start !important; + } +} diff --git a/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css b/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css index 0ad96b3f..a103e17a 100644 --- a/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css +++ b/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css @@ -151,3 +151,56 @@ grid-template-columns: 1fr; } } + +.recovery-code-dialog .recovery-dialog-actions { + display: flex !important; + flex-flow: row nowrap !important; + align-items: center !important; + align-content: center !important; + justify-content: flex-end !important; + gap: 10px !important; + width: 100%; + min-width: 0; + min-height: 36px; + overflow-x: auto; + overflow-y: hidden; + box-sizing: border-box; + white-space: nowrap; + scrollbar-width: thin; +} + +.recovery-code-dialog .recovery-dialog-actions > :deep(.el-button) { + display: inline-flex !important; + flex: 0 0 auto !important; + align-items: center !important; + justify-content: center !important; + width: max-content; + min-width: max-content; + height: 36px !important; + max-height: 36px; + box-sizing: border-box; + margin: 0 !important; + padding: 0 14px !important; + line-height: 1 !important; + white-space: nowrap !important; + word-break: keep-all !important; + overflow-wrap: normal !important; + writing-mode: horizontal-tb !important; + vertical-align: middle; +} + +:global(.recovery-code-dialog .el-dialog__footer) { + display: flex !important; + align-items: center !important; + justify-content: flex-end !important; + min-height: 52px; + box-sizing: border-box; +} + +@media (max-width: 420px) { + .recovery-code-dialog .recovery-dialog-actions { + display: flex !important; + flex-flow: row nowrap !important; + justify-content: flex-start !important; + } +}