diff options
| author | Fuwn <[email protected]> | 2023-10-01 15:58:10 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-10-01 15:58:10 -0700 |
| commit | 53d31dc6f84ecea46b12f17c15a346d1baafa30f (patch) | |
| tree | 847ef308ecf4a6adfb9675f444b111045f9cc39d /src/lib/List/ListTitle.svelte | |
| parent | feat(anime): completed as prop (diff) | |
| download | due.moe-53d31dc6f84ecea46b12f17c15a346d1baafa30f.tar.xz due.moe-53d31dc6f84ecea46b12f17c15a346d1baafa30f.zip | |
feat(title): fix count to number type
Diffstat (limited to 'src/lib/List/ListTitle.svelte')
| -rw-r--r-- | src/lib/List/ListTitle.svelte | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/List/ListTitle.svelte b/src/lib/List/ListTitle.svelte index 0cfc1273..72684b92 100644 --- a/src/lib/List/ListTitle.svelte +++ b/src/lib/List/ListTitle.svelte @@ -1,12 +1,14 @@ <script lang="ts"> export let time: number | undefined = undefined; - export let count: number | string = '...'; + export let count = -1337; export let anime = false; export let custom = ''; </script> <summary> - {custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count}] + {custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count === -1337 + ? '...' + : count}] <small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small> <slot /> </summary> |