diff options
| author | Fuwn <[email protected]> | 2024-01-04 06:55:48 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-04 06:55:48 -0800 |
| commit | eb4c0e22effc055ee21d132d1ed36901d1ecd381 (patch) | |
| tree | 7779a762f46f32d46ca90c2e8145923a99e42654 /src/lib/Utility/html.ts | |
| parent | feat: cool styles (diff) | |
| download | due.moe-eb4c0e22effc055ee21d132d1ed36901d1ecd381.tar.xz due.moe-eb4c0e22effc055ee21d132d1ed36901d1ecd381.zip | |
fix(html): limit list height
Diffstat (limited to 'src/lib/Utility/html.ts')
| -rw-r--r-- | src/lib/Utility/html.ts | 3 |
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); |