From 52cb943d6985e9bf025879c2a0c48d09a16face1 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 1 Oct 2023 16:04:21 -0700 Subject: fix: limit display area to screen ! --- src/routes/+page.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/routes/+page.svelte') 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)`; }); } } -- cgit v1.2.3