diff options
| author | Fuwn <[email protected]> | 2026-04-17 15:05:47 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-17 15:05:47 +0000 |
| commit | effe9f3133313ab033f2f12afece6eaedc01cb5f (patch) | |
| tree | a2beead923910eb2cc2e5f9192f80deeaee3b239 | |
| parent | fix(ui): reset media list filter when its custom list disappears (diff) | |
| download | due.moe-effe9f3133313ab033f2f12afece6eaedc01cb5f.tar.xz due.moe-effe9f3133313ab033f2f12afece6eaedc01cb5f.zip | |
fix(ui): hide list count badge when no media is displayed
Showing "0" in the list title next to a "No anime/manga to display"
empty-state message duplicates information. Treat an empty media list
the same as dummy mode and suppress the count.
| -rw-r--r-- | src/lib/List/Anime/CleanAnimeList.svelte | 2 | ||||
| -rw-r--r-- | src/lib/List/Manga/CleanMangaList.svelte | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte index 064b0fc5..76701a93 100644 --- a/src/lib/List/Anime/CleanAnimeList.svelte +++ b/src/lib/List/Anime/CleanAnimeList.svelte @@ -238,7 +238,7 @@ const increment = (anime: Media, progress: number) => { : filteredMedia.length} {title} hideTime={dummy} - hideCount={dummy} + hideCount={dummy || media.length === 0} > {#if $settings.displayMediaRoulette && !upcoming && !notYetReleased && filteredMedia.length > 1} <button diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index 9f24bbdd..a52a9d7e 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -140,7 +140,7 @@ const increment = (manga: Media) => { ? $locale().lists.due.mangaAndLightNovels : $locale().lists.completed.mangaAndLightNovels} hideTime={dummy} - hideCount={dummy} + hideCount={dummy || media.length === 0} > {#if !dummy} <button |