diff --git a/frontend/src/views/components/SecuritySettings/SecuritySettings.css b/frontend/src/views/components/SecuritySettings/SecuritySettings.css index 52ed42b..4f392f1 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; +}