feat: settings risk sections as 2x2 nested subcards

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 01:58:06 +08:00
parent fc6f85e76c
commit 3b494932c7
4 changed files with 54 additions and 19 deletions
+33
View File
@@ -2201,6 +2201,38 @@ html[data-theme="light"] .journal-detail-img-thumb {
font-size: 0.8rem;
}
.settings-risk-sections {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 14px;
}
.settings-subcard {
padding: 12px 14px;
min-width: 0;
margin: 0;
}
.settings-subcard-title {
margin: 0 0 10px;
font-size: 0.9rem;
font-weight: 600;
color: #cfd3ef;
}
.settings-kv--compact .settings-kv-row {
grid-template-columns: 8.5em 1fr;
padding: 5px 0;
font-size: 0.8rem;
}
@media (max-width: 720px) {
.settings-risk-sections {
grid-template-columns: minmax(0, 1fr);
}
}
.settings-section {
margin-top: 14px;
padding-top: 12px;
@@ -2282,6 +2314,7 @@ html[data-theme="light"] .settings-section {
border-top-color: #d0dae4;
}
html[data-theme="light"] .settings-subcard-title,
html[data-theme="light"] .settings-section h3,
html[data-theme="light"] .settings-kv-value {
color: #142232;