Align resource tabs with workbench review

This commit is contained in:
lix-2026
2026-05-20 19:04:05 +08:00
parent 4c62ea7e35
commit acf1305a7e
14 changed files with 964 additions and 13 deletions
+20
View File
@@ -2417,6 +2417,15 @@ body {
box-shadow: inset 0 1px 0 #E9E9E8, inset 1px 0 0 #E9E9E8, inset -1px 0 0 #E9E9E8;
}
.mnote-main-tab.is-close-guarded {
outline: 2px solid #E03E3E;
outline-offset: -2px;
}
.mnote-main-tab.is-close-guarded .mnote-main-tab-close {
opacity: 0.65;
}
.mnote-main-tab-badge {
width: 14px;
height: 14px;
@@ -2439,6 +2448,14 @@ body {
background: #d94841;
}
.mnote-main-tab[data-mnote-tab-badge-kind="pdf"] .mnote-main-tab-badge {
background: #e74c3c;
}
.mnote-main-tab[data-mnote-tab-badge-kind="file"] .mnote-main-tab-badge {
background: #6b7280;
}
.mnote-main-tab[data-mnote-tab-badge-kind="sheet"] .mnote-main-tab-badge {
background: #2f9e44;
}
@@ -4225,6 +4242,9 @@ mod tests {
assert!(MNOTE_CSS.contains("[data-mnote-tab-badge-kind=\"ppt\"]"));
assert!(MNOTE_CSS.contains("[data-mnote-tab-badge-kind=\"sheet\"]"));
assert!(MNOTE_CSS.contains("[data-mnote-tab-badge-kind=\"code\"]"));
assert!(MNOTE_CSS.contains("[data-mnote-tab-badge-kind=\"pdf\"]"));
assert!(MNOTE_CSS.contains("[data-mnote-tab-badge-kind=\"file\"]"));
assert!(MNOTE_CSS.contains("background: #e74c3c"));
}
#[test]