diff options
Diffstat (limited to 'src/routes/+page.svelte')
| -rw-r--r-- | src/routes/+page.svelte | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2809a649..13af2e3b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -9,19 +9,14 @@ import ListTitle from '$lib/List/ListTitle.svelte'; import HeadTitle from '$lib/HeadTitle.svelte'; import LastActivity from '$lib/LastActivity.svelte'; + import { limitListHeight } from '$lib/Utility/html.js'; export let data; let currentUserIdentity = { name: '', id: -1 }; onMount(async () => { - if ($settings.displayLimitListHeight) { - document.querySelectorAll('.list').forEach((list) => { - (list as HTMLElement).style.maxHeight = `calc(100vh - ${ - document.querySelector('#list-container')?.getBoundingClientRect().bottom - }px + 1.1rem)`; - }); - } + limitListHeight(); if (data.user !== undefined) { if ($userIdentity === '') { @@ -111,5 +106,7 @@ .list { overflow-y: auto; break-inside: avoid-column; + /* max-height: 80vh; */ + overflow-y: auto; } </style> |