From 1e621eec9d0267083253cab1fee3e449b66ff88b Mon Sep 17 00:00:00 2001 From: smail Date: Fri, 16 Oct 2026 08:45:23 +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=E6=B0=B4=E5=B9=B3=E5=AF=B9=E9=BD=90=E5=92=8C?= =?UTF-8?q?=E5=9E=82=E7=9B=B4=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SecuritySettings/SecuritySettings.css | 86 +++++++++++++++++++ .../RecoveryCodeDialog/RecoveryCodeDialog.css | 43 ++++++++++ 2 files changed, 129 insertions(+) diff --git a/frontend/src/views/components/SecuritySettings/SecuritySettings.css b/frontend/src/views/components/SecuritySettings/SecuritySettings.css index 28c3e66..52ed42b 100644 --- a/frontend/src/views/components/SecuritySettings/SecuritySettings.css +++ b/frontend/src/views/components/SecuritySettings/SecuritySettings.css @@ -849,3 +849,89 @@ padding: 0 !important; } } + +/* 桌面端最终规则:标题说明保持块级,安全码按钮组始终单行等高。 */ +@media (min-width: 768px) { + .security-settings-card .security-key-header { + display: grid !important; + grid-template-columns: minmax(0, 1fr) max-content !important; + grid-template-rows: auto !important; + grid-template-areas: "title actions" !important; + align-items: center !important; + column-gap: 16px !important; + row-gap: 0 !important; + } + + .security-settings-card .security-key-header > :first-child { + display: block !important; + grid-area: title !important; + min-width: 0 !important; + } + + .security-settings-card .security-key-header > :first-child > h3 { + margin: 0 0 8px !important; + line-height: 1.4 !important; + white-space: nowrap !important; + } + + .security-settings-card .security-key-header > :first-child > .settings-desc { + margin: 0 !important; + line-height: 1.5 !important; + white-space: normal !important; + overflow-wrap: anywhere !important; + } + + .security-settings-card .security-key-header > .security-recovery-actions { + display: flex !important; + grid-area: actions !important; + flex: 0 0 auto !important; + flex-direction: row !important; + flex-wrap: nowrap !important; + align-items: center !important; + align-content: center !important; + justify-content: flex-end !important; + align-self: center !important; + gap: 8px !important; + width: max-content !important; + min-width: max-content !important; + max-width: none !important; + height: 36px !important; + min-height: 36px !important; + margin: 0 !important; + padding: 0 !important; + overflow: visible !important; + white-space: nowrap !important; + } + + .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: auto !important; + min-width: max-content !important; + height: 36px !important; + min-height: 36px !important; + max-height: 36px !important; + box-sizing: border-box !important; + 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 !important; + } + + .security-settings-card .security-key-header > .security-recovery-actions > :deep(.el-button > span) { + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + height: 100% !important; + max-width: none !important; + overflow: visible !important; + white-space: nowrap !important; + line-height: 1 !important; + } +} diff --git a/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css b/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css index a103e17..9a2eba7 100644 --- a/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css +++ b/frontend/src/views/components/UserManagement/RecoveryCodeDialog/RecoveryCodeDialog.css @@ -204,3 +204,46 @@ justify-content: flex-start !important; } } + +/* 弹窗底部操作按钮统一为单行、等高、垂直居中。 */ +.recovery-code-dialog .recovery-dialog-actions { + display: flex !important; + flex-direction: row !important; + flex-wrap: nowrap !important; + align-items: center !important; + align-content: center !important; + justify-content: flex-end !important; + gap: 10px !important; + min-height: 36px !important; + overflow-x: auto !important; + overflow-y: hidden !important; + white-space: nowrap !important; +} + +.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; + height: 36px !important; + min-height: 36px !important; + max-height: 36px !important; + box-sizing: border-box !important; + 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 !important; +} + +.recovery-code-dialog .recovery-dialog-actions > :deep(.el-button > span) { + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + height: 100% !important; + white-space: nowrap !important; + line-height: 1 !important; +}