diff options
author | Wolfgang Müller | 2024-07-22 13:54:13 +0200 |
---|---|---|
committer | Wolfgang Müller | 2024-07-22 14:08:40 +0200 |
commit | ed4f65804c8aef47367241d57caa5ac39fe0ce8f (patch) | |
tree | 095198e23eb5604e306eeebf89df633c09531f97 /frontend/src/lib/reader/components | |
parent | 9ef47358926216695f6443fd7b48ef0c5d17b15d (diff) | |
download | hircine-ed4f65804c8aef47367241d57caa5ac39fe0ce8f.tar.gz |
frontend/reader: Add simple page indicator
Diffstat (limited to '')
-rw-r--r-- | frontend/src/lib/reader/components/PageIndicator.svelte | 9 |
1 files changed, 9 insertions, 0 deletions
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> |