From f19dae03092a13d58d5718112655d5178d0c296a Mon Sep 17 00:00:00 2001 From: eti Date: Thu, 8 Oct 2026 23:17:45 +0200 Subject: [PATCH] web/ui: add actions snippet to Section header Signed-off-by: eti --- web/src/lib/components/ui/Section.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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?.()} -- 2.54.0