Fix:EReader when player is open #442

This commit is contained in:
advplyr
2022-12-04 08:29:55 -06:00
parent d72295a0e6
commit 7db503a2cf
3 changed files with 50 additions and 11 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
<template>
<div v-if="show" class="absolute top-0 left-0 w-full h-full bg-bg z-40 pt-8">
<div v-if="show" class="absolute top-0 left-0 w-full h-full bg-bg z-40 pt-8" :class="{ 'reader-player-open': !!playerLibraryItemId }">
<div class="h-8 w-full bg-primary flex items-center px-2 fixed top-0 left-0 z-30 box-shadow-sm">
<p class="w-5/6 truncate">{{ title }}</p>
<div class="flex-grow" />
@@ -98,6 +98,9 @@ export default {
var serverAddress = this.$store.getters['user/getServerAddress']
return `${serverAddress}/ebook/${this.libraryId}/${this.folderId}/${itemRelPath}/${relPath}`
},
playerLibraryItemId() {
return this.$store.state.playerLibraryItemId
}
},
methods: {