diff options
Diffstat (limited to 'frontend/src/lib/reader/components/PageIndicator.svelte')
-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> |