Skip to content

Commit

Permalink
Update comic reader bottom page number bar to only show when top bar …
Browse files Browse the repository at this point in the history
…is showing #1485
  • Loading branch information
advplyr committed Mar 5, 2025
1 parent 6f01eaf commit 769ce0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions components/readers/ComicReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
</div>

<div class="fixed left-0 h-8 w-full bg-bg px-4 flex items-center text-fg-muted" :style="{ bottom: isPlayerOpen ? '120px' : '0px' }">
<div class="fixed left-0 h-8 w-full bg-bg px-4 flex items-center text-fg-muted transition-transform" :class="showingToolbar ? 'translate-y-0' : isPlayerOpen ? 'translate-y-[120px]' : 'translate-y-32'" :style="{ bottom: isPlayerOpen ? '120px' : '0px' }">
<div class="flex-grow" />
<p class="text-xs">{{ page }} / {{ numPages }}</p>
</div>
Expand All @@ -49,7 +49,8 @@ export default {
default: () => {}
},
isLocal: Boolean,
keepProgress: Boolean
keepProgress: Boolean,
showingToolbar: Boolean
},
data() {
return {
Expand Down Expand Up @@ -372,14 +373,12 @@ export default {
<style scoped>
#comic-reader {
height: calc(100% - 36px);
max-height: calc(100% - 36px);
padding-top: 36px;
height: 100%;
max-height: 100%;
}
.reader-player-open #comic-reader {
height: calc(100% - 156px);
max-height: calc(100% - 156px);
padding-top: 36px;
height: calc(100% - 120px);
max-height: calc(100% - 120px);
}
.comicimg {
Expand All @@ -390,4 +389,4 @@ export default {
width: 100vw;
height: 100%;
}
</style>
</style>
2 changes: 1 addition & 1 deletion components/readers/Reader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>

<!-- ereader -->
<component v-if="readerComponentName" ref="readerComponent" :is="readerComponentName" :url="ebookUrl" :library-item="selectedLibraryItem" :is-local="isLocal" :keep-progress="keepProgress" @touchstart="touchstart" @touchend="touchend" @loaded="readerLoaded" @hook:mounted="readerMounted" />
<component v-if="readerComponentName" ref="readerComponent" :is="readerComponentName" :url="ebookUrl" :library-item="selectedLibraryItem" :is-local="isLocal" :keep-progress="keepProgress" :showing-toolbar="showingToolbar" @touchstart="touchstart" @touchend="touchend" @loaded="readerLoaded" @hook:mounted="readerMounted" />

<!-- table of contents modal -->
<modals-fullscreen-modal v-model="showTOCModal" :theme="ereaderTheme">
Expand Down

0 comments on commit 769ce0a

Please sign in to comment.