From 6bc3ca7032c78c77a6e2b316789938221d686d8b Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Wed, 19 Feb 2025 15:39:48 +0100
Subject: frontend: Implement a better page indicator

This replaces the very simplistic x/y page indicator with a visual bar
at the bottom of the reader that allows the user quick access to any
arbitrary page. At the margins it shows the current page number(s) and
the total amount of pages.
---
 frontend/src/lib/reader/components/SliderMargin.svelte | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 frontend/src/lib/reader/components/SliderMargin.svelte

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

diff --git a/frontend/src/lib/reader/components/SliderMargin.svelte b/frontend/src/lib/reader/components/SliderMargin.svelte
new file mode 100644
index 0000000..c2f9a55
--- /dev/null
+++ b/frontend/src/lib/reader/components/SliderMargin.svelte
@@ -0,0 +1,11 @@
+<script lang="ts">
+	import type { Snippet } from 'svelte';
+
+	let { children }: { children: Snippet } = $props();
+</script>
+
+<div
+	class="flex h-full w-22 items-center justify-center px-1 font-semibold text-white/0 transition-colors group-hover/slider:bg-black group-hover/slider:text-white"
+>
+	{@render children()}
+</div>
-- 
cgit v1.2.3-2-gb3c3

