diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index d54ab791..c4d3e967 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -325,8 +325,13 @@ export default { if (this.episodeProgress) return this.episodeProgress return this.store.getters['user/getUserMediaProgress'](this.libraryItemId) }, + useEBookProgress() { + if (!this.userProgress || this.userProgress.progress) return false + return this.userProgress.ebookProgress > 0 + }, userProgressPercent() { - return this.userProgress ? this.userProgress.progress || 0 : 0 + if (this.useEBookProgress) return Math.max(Math.min(1, this.userProgress.ebookProgress), 0) + return this.userProgress ? Math.max(Math.min(1, this.userProgress.progress), 0) || 0 : 0 }, itemIsFinished() { return this.userProgress ? !!this.userProgress.isFinished : false diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index 9c19c3ec..8e7d016c 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue @@ -2,17 +2,13 @@
- chevron_left + chevron_left
-
-
- -
-

{{ progress }}%

-
+
+
- chevron_right + chevron_right
@@ -21,104 +17,137 @@ diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index 5481f250..a7383fb7 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -1,24 +1,48 @@