From 48f0c30d47d62e4f35706edb93a1bb2f97eba14c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Sun, 1 Mar 2026 16:04:11 -0800
Subject: chore(biome): enable svelte formatting

---
 src/lib/Home/LastActivity.svelte | 94 ++++++++++++++++++++--------------------
 1 file changed, 47 insertions(+), 47 deletions(-)

(limited to 'src/lib/Home/LastActivity.svelte')

diff --git a/src/lib/Home/LastActivity.svelte b/src/lib/Home/LastActivity.svelte
index 61cf6c7d..5c9ee4c2 100644
--- a/src/lib/Home/LastActivity.svelte
+++ b/src/lib/Home/LastActivity.svelte
@@ -1,53 +1,53 @@
 <script lang="ts">
-  import userIdentity from '$stores/identity';
-  import { onMount } from 'svelte';
-  import type { AniListAuthorisation } from '$lib/Data/AniList/identity';
-  import { lastActivityDate } from '../Data/AniList/activity';
-  import settings from '$stores/settings';
-
-  let { user }: { user: AniListAuthorisation } = $props();
-  let lastActivityWasToday = $state(true);
-
-  onMount(async () => {
-    if (!$settings.displayDisableLastActivityWarning && user !== undefined) {
-      lastActivityWasToday =
-        (await lastActivityDate($userIdentity, user)).date.toDateString() >=
-        new Date().toDateString();
-
-      if (!lastActivityWasToday) {
-        if ($settings.displayLimitListHeight) {
-          document.querySelectorAll('.list').forEach((list) => {
-            (list as HTMLElement).style.maxHeight = `calc((100vh - ${
-              document.querySelector('#list-container')?.getBoundingClientRect().top
-            }px) - 5rem)`;
-          });
-        }
+import userIdentity from '$stores/identity';
+import { onMount } from 'svelte';
+import type { AniListAuthorisation } from '$lib/Data/AniList/identity';
+import { lastActivityDate } from '../Data/AniList/activity';
+import settings from '$stores/settings';
+
+let { user }: { user: AniListAuthorisation } = $props();
+let lastActivityWasToday = $state(true);
+
+onMount(async () => {
+  if (!$settings.displayDisableLastActivityWarning && user !== undefined) {
+    lastActivityWasToday =
+      (await lastActivityDate($userIdentity, user)).date.toDateString() >=
+      new Date().toDateString();
+
+    if (!lastActivityWasToday) {
+      if ($settings.displayLimitListHeight) {
+        document.querySelectorAll('.list').forEach((list) => {
+          (list as HTMLElement).style.maxHeight = `calc((100vh - ${
+            document.querySelector('#list-container')?.getBoundingClientRect().top
+          }px) - 5rem)`;
+        });
       }
     }
-  });
-
-  const timeLeftToday = () => {
-    const now = new Date();
-    const currentHour = now.getHours();
-    const currentMinute = now.getMinutes();
-    const hoursLeft = 24 - currentHour;
-    let minutesLeft = 0;
-    let timeLeft = '';
-
-    if (hoursLeft > 0) {
-      minutesLeft = hoursLeft * 60 - currentMinute;
-    } else {
-      minutesLeft = 24 * 60 - (currentHour * 60 + currentMinute);
-    }
-
-    if (minutesLeft > 60) {
-      timeLeft = `${Math.round(minutesLeft / 60)} hours`;
-    } else {
-      timeLeft = `${minutesLeft} minutes`;
-    }
-
-    return timeLeft;
-  };
+  }
+});
+
+const timeLeftToday = () => {
+  const now = new Date();
+  const currentHour = now.getHours();
+  const currentMinute = now.getMinutes();
+  const hoursLeft = 24 - currentHour;
+  let minutesLeft = 0;
+  let timeLeft = '';
+
+  if (hoursLeft > 0) {
+    minutesLeft = hoursLeft * 60 - currentMinute;
+  } else {
+    minutesLeft = 24 * 60 - (currentHour * 60 + currentMinute);
+  }
+
+  if (minutesLeft > 60) {
+    timeLeft = `${Math.round(minutesLeft / 60)} hours`;
+  } else {
+    timeLeft = `${minutesLeft} minutes`;
+  }
+
+  return timeLeft;
+};
 </script>
 
 {#if !$settings.displayDisableLastActivityWarning && !lastActivityWasToday}
-- 
cgit v1.2.3

