From 3c740f9e327a2fff136967f8470eee5229295ee8 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 18 Apr 2024 13:48:14 -0700 Subject: fix(list): tooltip wrap title --- src/lib/List/Anime/CleanAnimeList.svelte | 90 ++++++++++++++++---------------- src/lib/List/Manga/CleanMangaList.svelte | 58 ++++++++++---------- 2 files changed, 73 insertions(+), 75 deletions(-) diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte index 5f2281cf..2ee10f4b 100644 --- a/src/lib/List/Anime/CleanAnimeList.svelte +++ b/src/lib/List/Anime/CleanAnimeList.svelte @@ -179,55 +179,53 @@ - {#if $settings.displaySocialButton} - [S] - {/if} - {#if !upcoming || notYetReleased || !$settings.displayCountdownRightAligned} - | - {/if} - {#if !upcoming || notYetReleased} - - {pendingUpdate === anime.id ? progress + 1 : progress}{@html totalEpisodes(anime)} - - {#if !completed} - [{anime.nextAiringEpisode?.episode === -1 - ? '?' - : (anime.nextAiringEpisode?.episode || 1) - - ((anime.nextAiringEpisode?.airingAt || 999) < - (anime.nextAiringEpisode?.nativeAiringAt || 0) - ? 2 - : 1)}] - - - - {/if} - {:else} + + {#if $settings.displaySocialButton} + [S] + {/if} + {#if !upcoming || notYetReleased || !$settings.displayCountdownRightAligned} + | + {/if} + {#if !upcoming || notYetReleased} + + {pendingUpdate === anime.id ? progress + 1 : progress}{@html totalEpisodes(anime)} + + {#if !completed} + [{anime.nextAiringEpisode?.episode === -1 + ? '?' + : (anime.nextAiringEpisode?.episode || 1) - + ((anime.nextAiringEpisode?.airingAt || 999) < + (anime.nextAiringEpisode?.nativeAiringAt || 0) + ? 2 + : 1)}] - + {/if} - + {:else} + + + + {/if} {/if} diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index c465ff0a..c2c781f6 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -188,36 +188,36 @@ - {#if $settings.displaySocialButton} - [S] - {/if} - | - {pendingUpdate === manga.id ? progress + 1 : progress}{#if !due} - /{manga.chapters || '?'} - {/if} - - {#if due || Math.floor(manga.episodes) < manga.chapters} - [{manga.episodes || '?'}] - {#await volumeCount(manga) then volumes} - {@const volumeProgress = manga.mediaListEntry?.progressVolumes} - - {#if volumes !== null && (volumeProgress || 0) < volumes} - - Vol. {volumeProgress} → {volumes} - - {/if} - {/await} - {/if} + {#if $settings.displaySocialButton} + [S] + {/if} + | + {pendingUpdate === manga.id ? progress + 1 : progress}{#if !due} + /{manga.chapters || '?'} + {/if} + + {#if due || Math.floor(manga.episodes) < manga.chapters} + [{manga.episodes || '?'}] + {#await volumeCount(manga) then volumes} + {@const volumeProgress = manga.mediaListEntry?.progressVolumes} + + {#if volumes !== null && (volumeProgress || 0) < volumes} + + Vol. {volumeProgress} → {volumes} + + {/if} + {/await} + {/if} {/if} {/each} -- cgit v1.2.3