diff --git a/web/src/lib/components/ui/Section.svelte b/web/src/lib/components/ui/Section.svelte index dfc87cece..7f76a7eaf 100644 --- a/web/src/lib/components/ui/Section.svelte +++ b/web/src/lib/components/ui/Section.svelte @@ -7,6 +7,7 @@ empty: boolean; emptyMessage: string; listClass?: string; + actions?: Snippet; header?: Snippet; footer?: Snippet; children: Snippet; @@ -17,6 +18,7 @@ empty, emptyMessage, listClass = "flex flex-col gap-md", + actions, header, footer, children @@ -24,7 +26,14 @@
- {#if title} + {#if actions} +
+ {#if title} +

{title}

+ {/if} + {@render actions()} +
+ {:else if title}

{title}

{/if} {@render header?.()}