From dc4db405d2991d3ec6a114f3b08d3fccd057d3ee Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 17:52:16 +0100
Subject: frontend: Migrate to Svelte 5

---
 frontend/src/lib/reader/components/ReaderMenuButton.svelte | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'frontend/src/lib/reader/components/ReaderMenuButton.svelte')

diff --git a/frontend/src/lib/reader/components/ReaderMenuButton.svelte b/frontend/src/lib/reader/components/ReaderMenuButton.svelte
index aa20206..58648e8 100644
--- a/frontend/src/lib/reader/components/ReaderMenuButton.svelte
+++ b/frontend/src/lib/reader/components/ReaderMenuButton.svelte
@@ -1,16 +1,19 @@
 <script lang="ts">
-	import { getReaderContext } from '$lib/Reader';
 	import { accelerator } from '$lib/Shortcuts';
+	import { getReaderContext } from '../Reader.svelte';
 
 	const reader = getReaderContext();
+
+	let title = $derived(`${reader.sidebar ? 'Hide' : 'Show'} menu`);
 </script>
 
 <button
 	type="button"
 	class="btn floating invisible xl:visible"
-	title={`${$reader.sidebar ? 'Hide' : 'Show'} menu`}
-	on:click={() => ($reader.sidebar = !$reader.sidebar)}
+	{title}
+	aria-label={title}
+	onclick={() => (reader.sidebar = !reader.sidebar)}
 	use:accelerator={'z'}
 >
-	<span class="icon-lg icon-[material-symbols--dock-to-right]" />
+	<span class="icon-lg icon-[material-symbols--dock-to-right]"></span>
 </button>
-- 
cgit v1.2.3-2-gb3c3

