feat: enhance TOTP settings UI with improved layout and status indication

This commit is contained in:
shuaiplus
2026-05-12 15:55:05 +08:00
parent 06431c4145
commit 83a1fc2376
4 changed files with 58 additions and 8 deletions
+22 -4
View File
@@ -425,7 +425,7 @@
}
.totp-grid {
@apply mb-3.5 grid gap-3.5;
@apply grid gap-3.5;
grid-template-columns: 220px 1fr;
}
@@ -497,12 +497,15 @@
}
.settings-modules-grid {
@apply grid gap-3;
grid-template-columns: repeat(2, minmax(0, 1fr));
--settings-grid-gap: 12px;
@apply grid;
gap: var(--settings-grid-gap);
grid-template-columns: repeat(2, minmax(0, calc((100% - var(--settings-grid-gap)) / 2)));
}
.settings-module {
@apply min-w-0;
width: 100%;
}
.sensitive-actions-module {
@@ -517,6 +520,21 @@
color: var(--text);
}
.settings-module-head {
@apply mb-[5px] flex items-center justify-between gap-3;
}
.settings-module-head h3 {
@apply m-0;
}
.totp-status-pill {
@apply inline-flex min-h-8 shrink-0 items-center gap-1.5 rounded-full px-3 text-sm font-extrabold;
border: 1px solid color-mix(in srgb, var(--success) 26%, var(--line));
background: color-mix(in srgb, var(--success) 9%, var(--panel));
color: var(--success);
}
.settings-module-placeholder {
@apply flex min-h-[150px] flex-col items-center justify-center gap-3 text-base font-extrabold;
color: var(--muted);
@@ -536,7 +554,7 @@
}
.sensitive-actions-grid {
@apply grid gap-3;
@apply grid gap-[3px];
}
.sensitive-action {
+16
View File
@@ -855,6 +855,22 @@
line-height: 1.25;
}
.settings-module-head {
margin-bottom: 8px;
align-items: center;
gap: 8px;
}
.settings-module-head h3 {
margin: 0;
}
.totp-status-pill {
min-height: 30px;
padding: 0 10px;
font-size: 13px;
}
.settings-module .field,
.auth-card .field {
margin-bottom: 8px;