aboutsummaryrefslogtreecommitdiff
path: root/src/routes/completed
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/completed')
-rw-r--r--src/routes/completed/+page.svelte9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/routes/completed/+page.svelte b/src/routes/completed/+page.svelte
index 0ef8f10d..3e324b6d 100644
--- a/src/routes/completed/+page.svelte
+++ b/src/routes/completed/+page.svelte
@@ -8,19 +8,14 @@
import MangaListTemplate from '$lib/List/Manga/MangaListTemplate.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 === '') {