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/Anime/CleanAnimeList.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/List/Anime/CleanAnimeList.svelte')

diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte
index 5c35686a..e6aa7a5d 100644
--- a/src/lib/List/Anime/CleanAnimeList.svelte
+++ b/src/lib/List/Anime/CleanAnimeList.svelte
@@ -230,7 +230,7 @@ const increment = (anime: Media, progress: number) => {
   hideTime={dummy}
   hideCount={dummy}
 >
-  {#if $settings.displayMediaRoulette && !upcoming && !notYetReleased && filteredMedia.length > 0}
+  {#if $settings.displayMediaRoulette && !upcoming && !notYetReleased && filteredMedia.length > 1}
     <button
       class="small-button"
       onclick={() => (showRoulette = true)}
-- 
cgit v1.2.3

