From f0fb8e5c8ae64dbf23d2156a5ddfd8f62682ea77 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Dec 2023 18:22:22 -0800 Subject: feat(settings): rename display settings --- src/routes/+layout.svelte | 2 +- src/routes/+page.svelte | 10 +++++----- src/routes/completed/+page.svelte | 8 ++++---- src/routes/settings/+page.svelte | 14 +++++++------- 4 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/routes') diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index eae53f7a..47253acc 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -27,7 +27,7 @@
- {#if $settings.hoverNavigation} + {#if $settings.displayHoverNavigation}
HomeCompletedManga & WN Updates • diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 66d93d73..d8ba06f0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -15,7 +15,7 @@ let lastActivityWasToday = true; onMount(async () => { - if ($settings.limitListHeight) { + if ($settings.displayLimitListHeight) { document.querySelectorAll('.list').forEach((list) => { (list as HTMLElement).style.maxHeight = `calc(100vh - ${ document.querySelector('#list-container')?.getBoundingClientRect().bottom @@ -34,7 +34,7 @@ (await lastActivityDate(currentUserIdentity)).toDateString() >= new Date().toDateString(); if (!lastActivityWasToday) { - if ($settings.limitListHeight) { + if ($settings.displayLimitListHeight) { document.querySelectorAll('.list').forEach((list) => { (list as HTMLElement).style.maxHeight = `calc((100vh - ${ document.querySelector('#list-container')?.getBoundingClientRect().top @@ -81,7 +81,7 @@ Please log in to view due media. {:else} {#if !$settings.disableUpcomingAnime} -
+
{#if currentUserIdentity.id != -1} {:else} @@ -93,7 +93,7 @@ {/if} {#if !$settings.disableAnime} -
+
{#if currentUserIdentity.id != -1} {:else} @@ -105,7 +105,7 @@ {/if} {#if !$settings.disableManga} -
+
{#if currentUserIdentity.id != -1} { - if ($settings.limitListHeight) { + if ($settings.displayLimitListHeight) { document.querySelectorAll('.list').forEach((list) => { (list as HTMLElement).style.maxHeight = `calc(100vh - ${ document.querySelector('#list-container')?.getBoundingClientRect().bottom @@ -33,7 +33,7 @@ (await lastActivityDate(currentUserIdentity)).toDateString() >= new Date().toDateString(); if (!lastActivityWasToday) { - if ($settings.limitListHeight) { + if ($settings.displayLimitListHeight) { document.querySelectorAll('.list').forEach((list) => { (list as HTMLElement).style.maxHeight = `calc((100vh - ${ document.querySelector('#list-container')?.getBoundingClientRect().top @@ -79,7 +79,7 @@ {#if data.user === undefined} Please log in to view due media. {:else} -
+
{#if currentUserIdentity.id != -1} {:else} @@ -89,7 +89,7 @@ {/if}
-
+
{#if currentUserIdentity.id != -1} - - + + {/if} - + Minimises and moves navigation to the top-left corner of the screen, visible only on hover. Intended for use on desktop devices. @@ -153,7 +153,7 @@
@@ -174,7 +174,7 @@

- -- cgit v1.2.3