From 0c58f83906a1ae36fbe6ba2f669ded833311963d Mon Sep 17 00:00:00 2001 From: smail Date: Fri, 16 Oct 2026 08:55:44 +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=AE=9E=E9=99=85=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SecuritySettings/SecuritySettings.css | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) diff --git a/frontend/src/views/components/SecuritySettings/SecuritySettings.css b/frontend/src/views/components/SecuritySettings/SecuritySettings.css index 52ed42b5..4f392f19 100644 --- a/frontend/src/views/components/SecuritySettings/SecuritySettings.css +++ b/frontend/src/views/components/SecuritySettings/SecuritySettings.css @@ -935,3 +935,146 @@ line-height: 1 !important; } } + +@media (min-width: 768px) { + :global(.security-settings-card .security-key-header) { + display: grid !important; + grid-template-columns: minmax(0, 1fr) max-content !important; + grid-template-rows: minmax(36px, auto) !important; + align-items: center !important; + column-gap: 16px !important; + row-gap: 0 !important; + } + + :global(.security-settings-card .security-key-header > .security-recovery-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; + align-self: center !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; + gap: 8px !important; + overflow: visible !important; + white-space: nowrap !important; + } + + :global(.security-settings-card .security-key-header > .security-recovery-actions .el-button) { + display: inline-flex !important; + flex: 0 0 auto !important; + align-items: center !important; + justify-content: center !important; + width: max-content !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; + } + + :global(.security-settings-card .security-key-header > .security-recovery-actions .el-button > span) { + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + height: 100% !important; + line-height: 1 !important; + white-space: nowrap !important; + } +} + +@media (max-width: 767px) { + :global(.security-settings-card .security-key-header) { + display: flex !important; + flex-direction: column !important; + align-items: stretch !important; + gap: 12px !important; + } + + :global(.security-settings-card .security-key-header > .security-recovery-actions) { + display: flex !important; + flex-direction: row !important; + flex-wrap: nowrap !important; + align-items: center !important; + justify-content: flex-start !important; + width: 100% !important; + min-width: 0 !important; + max-width: 100% !important; + height: 36px !important; + min-height: 36px !important; + margin: 0 !important; + padding: 0 !important; + gap: 8px !important; + overflow-x: auto !important; + overflow-y: hidden !important; + white-space: nowrap !important; + } + + :global(.security-settings-card .security-key-header > .security-recovery-actions .el-button) { + flex: 0 0 auto !important; + height: 36px !important; + min-height: 36px !important; + margin: 0 !important; + white-space: nowrap !important; + writing-mode: horizontal-tb !important; + } +} + +:global(.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; + width: 100% !important; + min-width: 0 !important; + min-height: 36px !important; + margin: 0 !important; + padding: 0 !important; + overflow-x: auto !important; + overflow-y: hidden !important; + box-sizing: border-box !important; + white-space: nowrap !important; +} + +:global(.recovery-code-dialog .recovery-dialog-actions > .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; +} + +:global(.recovery-code-dialog .recovery-dialog-actions > .el-button > span) { + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + height: 100% !important; + line-height: 1 !important; + white-space: nowrap !important; +}