From e00150a87603e536c95d96ba1f6101476b73970e Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sun, 15 Feb 2026 19:46:08 +0200 Subject: [PATCH] ui/cards: do not include nesting level CSS variables if not necessary --- apps/client/src/widgets/react/Card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}