From ad6ca6aa06078d70293ddb33e0f9ed94c30ce1da Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Fri, 17 Apr 2026 15:04:35 +0000
Subject: fix(ui): hide media roulette button when only one item is pickable

Rouletting a single item is deterministic, so the affordance adds
nothing. Require at least two items before showing the button on both
anime and manga lists.
---
 src/lib/List/Manga/CleanMangaList.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/List/Manga/CleanMangaList.svelte')

diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte
index 7d0bb144..7907c22f 100644
--- a/src/lib/List/Manga/CleanMangaList.svelte
+++ b/src/lib/List/Manga/CleanMangaList.svelte
@@ -139,7 +139,7 @@ const increment = (manga: Media) => {
         onclick={cleanCache}
         data-umami-event="Force Refresh Manga">Refresh</button
       >
-      {#if $settings.displayMediaRoulette && filteredMedia.length > 0}
+      {#if $settings.displayMediaRoulette && filteredMedia.length > 1}
         <button
           class="small-button"
           onclick={() => (showRoulette = true)}
-- 
cgit v1.2.3

