diff options
| author | Fuwn <[email protected]> | 2023-10-01 16:04:21 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-10-01 16:04:21 -0700 |
| commit | 52cb943d6985e9bf025879c2a0c48d09a16face1 (patch) | |
| tree | 6d5df7656e48838889c6a5097635abaf0a90f139 /src/routes/+page.svelte | |
| parent | feat(title): fix count to number type (diff) | |
| download | due.moe-52cb943d6985e9bf025879c2a0c48d09a16face1.tar.xz due.moe-52cb943d6985e9bf025879c2a0c48d09a16face1.zip | |
fix: limit display area to screen !
Diffstat (limited to 'src/routes/+page.svelte')
| -rw-r--r-- | src/routes/+page.svelte | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ab83d39b..6d077193 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -15,8 +15,6 @@ let lastActivityWasToday = true; onMount(async () => { - settings.setKey('limitListHeight', false); - if ($settings.limitListHeight) { document.querySelectorAll('.list').forEach((list) => { (list as HTMLElement).style.maxHeight = `calc(100vh - ${ @@ -39,8 +37,8 @@ if ($settings.limitListHeight) { document.querySelectorAll('.list').forEach((list) => { (list as HTMLElement).style.maxHeight = `calc((100vh - ${ - document.querySelector('#list-container')?.getBoundingClientRect().bottom - }px) - 1.9rem)`; + document.querySelector('#list-container')?.getBoundingClientRect().top + }px) - 5rem)`; }); } } |