mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge pull request #3864 from mikiher/subdir-support-fix-missing-img
Fix missing texture image & epub ebook url for subdirectory support
This commit is contained in:
		
						commit
						f13283b950
					
				@ -5,7 +5,7 @@
 | 
				
			|||||||
@import './absicons.css';
 | 
					@import './absicons.css';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:root {
 | 
					: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%);
 | 
					  --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%);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -247,4 +247,4 @@ Bookshelf Label
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.abs-btn:disabled::before {
 | 
					.abs-btn:disabled::before {
 | 
				
			||||||
  background-color: rgba(0, 0, 0, 0.2);
 | 
					  background-color: rgba(0, 0, 0, 0.2);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -97,9 +97,9 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    ebookUrl() {
 | 
					    ebookUrl() {
 | 
				
			||||||
      if (this.fileId) {
 | 
					      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() {
 | 
					    themeRules() {
 | 
				
			||||||
      const isDark = this.ereaderSettings.theme === 'dark'
 | 
					      const isDark = this.ereaderSettings.theme === 'dark'
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user