From 0d46fa54da625187f96e312fb0bc9f1f0d37aabf Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Fri, 22 May 2026 12:20:37 +0000
Subject: fix(lists): stop slot buttons from toggling the list details

ListTitle renders inside <summary>, so clicking the Roulette or
Refresh button bubbled up and toggled the parent <details>. Wrap
the slot in a span that preventDefault()s the click, so the button's
own onclick still runs but the summary toggle is cancelled.
---
 src/lib/List/ListTitle.svelte | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/lib/List/ListTitle.svelte')

diff --git a/src/lib/List/ListTitle.svelte b/src/lib/List/ListTitle.svelte
index 2e9181d0..1af962e5 100644
--- a/src/lib/List/ListTitle.svelte
+++ b/src/lib/List/ListTitle.svelte
@@ -29,7 +29,12 @@ export let hideCount = false;
     {/if}
     <small class="opaque list-title-time">{time ? time.toFixed(3) : '...'}s</small>
   {/if}
-  <slot />
+  <span
+    role="presentation"
+    onclick={(event) => event.preventDefault()}
+  >
+    <slot />
+  </span>
   {#if progress !== undefined}
     <button class="badge unclickable-button button-badge badge-info">
       {progress.toFixed(0)}%
-- 
cgit v1.2.3

