From eb4c0e22effc055ee21d132d1ed36901d1ecd381 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 4 Jan 2024 06:55:48 -0800 Subject: fix(html): limit list height --- src/lib/Utility/html.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Utility/html.ts b/src/lib/Utility/html.ts index 01041b0e..3371a7d3 100644 --- a/src/lib/Utility/html.ts +++ b/src/lib/Utility/html.ts @@ -8,7 +8,8 @@ export const limitListHeight = () => { document.querySelectorAll('.list').forEach((list) => { const listContainerBottom = document.querySelector('#list-container')?.getBoundingClientRect().bottom || 0; - const headerBottom = document.querySelector('#header')?.getBoundingClientRect().bottom || 0; + const headerBottom = + (document.querySelector('#header')?.getBoundingClientRect().bottom || 0) * 1.5; const offset = 1.25; const offsetInPixels = offset * parseFloat(getComputedStyle(document.documentElement).fontSize); -- cgit v1.2.3