aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-04 06:55:48 -0800
committerFuwn <[email protected]>2024-01-04 06:55:48 -0800
commiteb4c0e22effc055ee21d132d1ed36901d1ecd381 (patch)
tree7779a762f46f32d46ca90c2e8145923a99e42654
parentfeat: cool styles (diff)
downloaddue.moe-eb4c0e22effc055ee21d132d1ed36901d1ecd381.tar.xz
due.moe-eb4c0e22effc055ee21d132d1ed36901d1ecd381.zip
fix(html): limit list height
-rw-r--r--src/lib/Utility/html.ts3
1 files changed, 2 insertions, 1 deletions
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);