From ed4f65804c8aef47367241d57caa5ac39fe0ce8f Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Mon, 22 Jul 2024 13:54:13 +0200
Subject: frontend/reader: Add simple page indicator

---
 frontend/src/lib/reader/components/PageIndicator.svelte | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 frontend/src/lib/reader/components/PageIndicator.svelte

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

diff --git a/frontend/src/lib/reader/components/PageIndicator.svelte b/frontend/src/lib/reader/components/PageIndicator.svelte
new file mode 100644
index 0000000..f79fc00
--- /dev/null
+++ b/frontend/src/lib/reader/components/PageIndicator.svelte
@@ -0,0 +1,9 @@
+<script lang="ts">
+	import { getReaderContext } from '$lib/Reader';
+
+	const reader = getReaderContext();
+</script>
+
+<div class="floating !p-2">
+	{$reader.page + 1}/{$reader.pages.length}
+</div>
-- 
cgit v1.2.3-2-gb3c3

