From bb363c5cd4216ea435ddae81278ada86fb35d7f0 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 13 Sep 2023 01:56:47 -0700
Subject: feat(activity-history): move into details

---
 src/routes/activity-history/+page.svelte | 48 +++++++++++++++++---------------
 1 file changed, 25 insertions(+), 23 deletions(-)

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

diff --git a/src/routes/activity-history/+page.svelte b/src/routes/activity-history/+page.svelte
index a1938ee9..2bb0f129 100644
--- a/src/routes/activity-history/+page.svelte
+++ b/src/routes/activity-history/+page.svelte
@@ -63,30 +63,32 @@
 	// };
 </script>
 
-<h1>Activity History Hole Risk</h1>
+<details open>
+	<summary>Activity History</summary>
 
-Days in risk of developing an activity history hole. (days with one activity)
+	Days in risk of developing an activity history hole. (days with one activity)
 
-<p />
+	<p />
 
-{#if data.user === undefined}
-	Please log in to view this page.
-{:else}
-	{#await activityHistoryData}
-		Loading ...
-	{:then activities}
-		{#if activities === undefined}
+	{#if data.user === undefined}
+		Please log in to view this page.
+	{:else}
+		{#await activityHistoryData}
 			Loading ...
-		{:else}
-			<ul>
-				{#each fillMissingDays(activities) as activity}
-					{#if activity.amount === 0}
-						<li>
-							{new Date(activity.date * 1000 + timezoneOffset).toDateString()}
-						</li>
-					{/if}
-				{/each}
-			</ul>
-		{/if}
-	{/await}
-{/if}
+		{:then activities}
+			{#if activities === undefined}
+				Loading ...
+			{:else}
+				<ul>
+					{#each fillMissingDays(activities) as activity}
+						{#if activity.amount === 0}
+							<li>
+								{new Date(activity.date * 1000 + timezoneOffset).toDateString()}
+							</li>
+						{/if}
+					{/each}
+				</ul>
+			{/if}
+		{/await}
+	{/if}
+</details>
-- 
cgit v1.2.3

