diff options
Diffstat (limited to 'src/lib/List')
| -rw-r--r-- | src/lib/List/ListTitle.svelte | 5 | ||||
| -rw-r--r-- | src/lib/List/Manga/CleanMangaList.svelte | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/List/ListTitle.svelte b/src/lib/List/ListTitle.svelte index 1513e78c..63551608 100644 --- a/src/lib/List/ListTitle.svelte +++ b/src/lib/List/ListTitle.svelte @@ -8,6 +8,7 @@ hint: 'This is a media list.' }; export let progress: undefined | number = undefined; + export let hideTime = false; interface Title { title: string; @@ -18,7 +19,9 @@ <summary> <span title={title.hint || undefined} use:tooltip>{title.title}</span> [{count === -1337 ? '...' : count}] - <small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small> + {#if !hideTime} + <small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small> + {/if} <slot /> {#if progress !== undefined} <button class="badge unclickable-button button-badge badge-info"> diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index 399ae68e..2c98a040 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -157,6 +157,7 @@ [{manga.episodes || '?'}] {#await volumeCount(manga) then volumes} {@const volumeProgress = manga.mediaListEntry?.progressVolumes} + {#if volumes !== null && (volumeProgress || 0) < volumes} <span style="color: lightcoral;"> Vol. {volumeProgress} → {volumes} |