diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 3e02d1f..82f9543 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -39,34 +39,48 @@
tabindex="0"
class="menu dropdown-content z-[1] mt-4 w-52 rounded-box border bg-base-100 p-2 shadow"
>
-
Race Picks
- Season Picks
- Leaderboard
- Statistics
- Rules
+ Race Picks
+ Season Picks
+ Leaderboard
+ Statistics
+ Rules
- Formula 11
+ Formula 11
@@ -79,8 +93,10 @@
tabindex="0"
class="menu dropdown-content z-[1] mt-4 w-52 rounded-box border bg-base-100 p-2 shadow"
>
- Season Data
- User Data
+
+ Season Data
+
+ User Data
@@ -122,6 +138,8 @@
id="user_avatar_preview"
src={data.user.avatar_url}
alt="User avatar"
+ class="select-none"
+ draggable="false"
/>
diff --git a/src/routes/data/seasondata/+layout.svelte b/src/routes/data/seasondata/+layout.svelte
index cd9a6c0..26dc395 100644
--- a/src/routes/data/seasondata/+layout.svelte
+++ b/src/routes/data/seasondata/+layout.svelte
@@ -4,14 +4,12 @@
let { children }: { children: Snippet } = $props();
- // const tab = $state($page.url.pathname.split("/").at(-1));
+ // This has to be a function, so $page access is deferred to route switches
const get_tab = () => {
return $page.url.pathname.split("/").at(-1);
};
-
-
Season Data
@@ -31,7 +29,6 @@
class={get_tab() === "races" ? "tab tab-active" : "tab"}>Races
-
{@render children()}