diff options
| author | Fuwn <[email protected]> | 2023-09-20 15:45:35 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-20 15:45:35 -0700 |
| commit | f35b34ecbe55bd892066343cd387e159ba461cd0 (patch) | |
| tree | 23949f2c9f5d107bce5834738a5b696ff3a45837 /src | |
| parent | fix(page): fix height limit with activity warning (diff) | |
| download | due.moe-f35b34ecbe55bd892066343cd387e159ba461cd0.tar.xz due.moe-f35b34ecbe55bd892066343cd387e159ba461cd0.zip | |
fix(page): types
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/+page.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 76c05f86..47865e68 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -17,7 +17,7 @@ onMount(async () => { if ($settings.limitListHeight) { document.querySelectorAll('.list').forEach((list) => { - list.style.maxHeight = `calc(100vh - ${ + (list as HTMLElement).style.maxHeight = `calc(100vh - ${ document.querySelector('#list-container')?.getBoundingClientRect().bottom }px + 1.1rem)`; }); @@ -36,7 +36,7 @@ if (!lastActivityWasToday) { if ($settings.limitListHeight) { document.querySelectorAll('.list').forEach((list) => { - list.style.maxHeight = `calc((100vh - ${ + (list as HTMLElement).style.maxHeight = `calc((100vh - ${ document.querySelector('#list-container')?.getBoundingClientRect().bottom }px) - 1.9rem)`; }); |