mirror of
https://github.com/zadam/trilium.git
synced 2026-02-19 12:14:23 +01:00
ui/cards: do not include nesting level CSS variables if not necessary
This commit is contained in:
parent
71668f8f8d
commit
e00150a876
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user