Update:Showing fullscreen cover uses raw cover

This commit is contained in:
advplyr
2022-12-04 16:30:18 -06:00
parent ad3fee8907
commit b4a37fed28
3 changed files with 11 additions and 10 deletions
+3 -2
View File
@@ -47,7 +47,8 @@ export default {
default: 120
},
bookCoverAspectRatio: Number,
downloadCover: String
downloadCover: String,
raw: Boolean
},
data() {
return {
@@ -115,7 +116,7 @@ export default {
if (this.downloadCover) return this.downloadCover
if (!this.libraryItem) return null
var store = this.$store || this.$nuxt.$store
return store.getters['globals/getLibraryItemCoverSrc'](this.libraryItem, this.placeholderUrl)
return store.getters['globals/getLibraryItemCoverSrc'](this.libraryItem, this.placeholderUrl, this.raw)
},
cover() {
return this.media.coverPath || this.placeholderUrl
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<modals-modal v-model="show" width="100%" height="100%" max-width="100%">
<div class="w-full h-full overflow-hidden absolute top-0 left-0 flex items-center justify-center" @click="show = false">
<covers-book-cover :library-item="libraryItem" :width="width" :book-cover-aspect-ratio="bookCoverAspectRatio" />
<covers-book-cover :library-item="libraryItem" :width="width" raw :book-cover-aspect-ratio="bookCoverAspectRatio" />
</div>
</modals-modal>
</template>