From f0fb8e5c8ae64dbf23d2156a5ddfd8f62682ea77 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 17 Dec 2023 18:22:22 -0800
Subject: feat(settings): rename display settings

---
 src/routes/+page.svelte | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/routes/+page.svelte')

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}
-			<details open={!$settings.closeUpcomingAnimeByDefault} class="list">
+			<details open={!$settings.displayUpcomingAnimeCollapsed} class="list">
 				{#if currentUserIdentity.id != -1}
 					<UpcomingAnimeList user={data.user} identity={currentUserIdentity} />
 				{:else}
@@ -93,7 +93,7 @@
 		{/if}
 
 		{#if !$settings.disableAnime}
-			<details open={!$settings.closeAnimeByDefault} class="list">
+			<details open={!$settings.displayAnimeCollapsed} class="list">
 				{#if currentUserIdentity.id != -1}
 					<AnimeList user={data.user} identity={currentUserIdentity} />
 				{:else}
@@ -105,7 +105,7 @@
 		{/if}
 
 		{#if !$settings.disableManga}
-			<details open={!$settings.closeMangaByDefault} class="list">
+			<details open={!$settings.displayMangaCollapsed} class="list">
 				{#if currentUserIdentity.id != -1}
 					<MangaListTemplate
 						user={data.user}
-- 
cgit v1.2.3

