mirror of
https://github.com/zadam/trilium.git
synced 2026-02-19 20:24:28 +01:00
ui/cards: use a better HTML structure
This commit is contained in:
parent
4ee9d45dfc
commit
48013dc264
@ -14,7 +14,7 @@
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tn-card {
|
||||
.tn-card-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--card-section-gap);
|
||||
|
||||
@ -10,12 +10,12 @@ interface CardProps {
|
||||
}
|
||||
|
||||
export function Card(props: {children: ComponentChildren} & CardProps) {
|
||||
return <>
|
||||
return <div class={clsx("tn-card", props.className)}>
|
||||
{props.heading && <h5 class="tn-card-heading">{props.heading}</h5>}
|
||||
<div className={clsx(["tn-card", props.className])}>
|
||||
<div className="tn-card-body">
|
||||
{props.children}
|
||||
</div>
|
||||
</>;
|
||||
</div>;
|
||||
}
|
||||
|
||||
interface CardSectionProps {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user