From e31ffad393fb893e0c16637e496d1f4129bf9513 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 11 Oct 2023 00:21:09 -0700
Subject: fix(completed): limit list height

---
 src/routes/completed/+page.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/routes/completed/+page.svelte')

diff --git a/src/routes/completed/+page.svelte b/src/routes/completed/+page.svelte
index b80ccb8c..4849ab1e 100644
--- a/src/routes/completed/+page.svelte
+++ b/src/routes/completed/+page.svelte
@@ -36,8 +36,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

