Skip to content

Commit

Permalink
Merge pull request #3864 from mikiher/subdir-support-fix-missing-img
Browse files Browse the repository at this point in the history
Fix missing texture image & epub ebook url for subdirectory support
  • Loading branch information
advplyr authored Jan 20, 2025
2 parents 6745efc + 78994b3 commit f13283b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/assets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@import './absicons.css';

:root {
--bookshelf-texture-img: url(/textures/wood_default.jpg);
--bookshelf-texture-img: url(~static/textures/wood_default.jpg);
--bookshelf-divider-bg: linear-gradient(180deg, rgba(149, 119, 90, 1) 0%, rgba(103, 70, 37, 1) 17%, rgba(103, 70, 37, 1) 88%, rgba(71, 48, 25, 1) 100%);
}

Expand Down Expand Up @@ -247,4 +247,4 @@ Bookshelf Label

.abs-btn:disabled::before {
background-color: rgba(0, 0, 0, 0.2);
}
}
4 changes: 2 additions & 2 deletions client/components/readers/EpubReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ export default {
},
ebookUrl() {
if (this.fileId) {
return `/api/items/${this.libraryItemId}/ebook/${this.fileId}`
return `${this.$config.routerBasePath}/api/items/${this.libraryItemId}/ebook/${this.fileId}`
}
return `/api/items/${this.libraryItemId}/ebook`
return `${this.$config.routerBasePath}/api/items/${this.libraryItemId}/ebook`
},
themeRules() {
const isDark = this.ereaderSettings.theme === 'dark'
Expand Down

0 comments on commit f13283b

Please sign in to comment.