From f35b34ecbe55bd892066343cd387e159ba461cd0 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 20 Sep 2023 15:45:35 -0700
Subject: fix(page): types

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

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

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 76c05f86..47865e68 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -17,7 +17,7 @@
 	onMount(async () => {
 		if ($settings.limitListHeight) {
 			document.querySelectorAll('.list').forEach((list) => {
-				list.style.maxHeight = `calc(100vh - ${
+				(list as HTMLElement).style.maxHeight = `calc(100vh - ${
 					document.querySelector('#list-container')?.getBoundingClientRect().bottom
 				}px + 1.1rem)`;
 			});
@@ -36,7 +36,7 @@
 			if (!lastActivityWasToday) {
 				if ($settings.limitListHeight) {
 					document.querySelectorAll('.list').forEach((list) => {
-						list.style.maxHeight = `calc((100vh - ${
+						(list as HTMLElement).style.maxHeight = `calc((100vh - ${
 							document.querySelector('#list-container')?.getBoundingClientRect().bottom
 						}px) - 1.9rem)`;
 					});
-- 
cgit v1.2.3

