fix: address follow-up review feedback

This commit is contained in:
2026-05-17 19:05:28 -07:00
parent 6f48d4b65b
commit 93d9ed81a2
19 changed files with 191 additions and 38 deletions
+8 -1
View File
@@ -77,7 +77,14 @@ export function applySidebarCssDeclarations(
for (const [property, rawValue] of Object.entries(declarations)) {
const value = rawValue.trim();
if (value.length === 0) continue;
if (value.length === 0) {
if (property.includes('-')) {
targetStyle.removeProperty(property);
} else {
styleTarget[property] = '';
}
continue;
}
if (property.includes('-')) {
targetStyle.setProperty(property, value);
} else {