Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsxindex 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>