Skip to content

Build your personal knowledge base with Trilium Notes

ui/cards: do not include nesting level CSS variables if not necessary

Adorian Dorane00150a87603
diff --git a/apps/client/src/widgets/react/Card.tsx b/apps/client/src/widgets/react/Card.tsx
index 26b52040be..7296433bf7 100644
--- a/apps/client/src/widgets/react/Card.tsx
+++ b/apps/client/src/widgets/react/Card.tsx
@@ -31,7 +31,7 @@ export function CardSection(props: {children: ComponentChildren} & CardSectionPr
"tn-card-section-nested": nestingLevel > 0,
"tn-card-section-highlight-on-hover": props.highlightOnHover || props.onAction
})}
- style={{"--tn-card-section-nesting-level": nestingLevel}}
+ style={{"--tn-card-section-nesting-level": (nestingLevel) ? nestingLevel : null}}
onClick={props.onAction}>
{props.children}
</section>