mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Show cover size widget when audio player is open #2443
This commit is contained in:
		
							parent
							
								
									6d3f1d263a
								
							
						
					
					
						commit
						72fa6b8200
					
				| @ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <div id="bookshelf" ref="wrapper" class="w-full max-w-full h-full overflow-y-scroll relative"> |   <div id="bookshelf" ref="wrapper" class="w-full max-w-full h-full overflow-y-scroll relative"> | ||||||
|     <!-- Cover size widget --> |     <!-- Cover size widget --> | ||||||
|     <widgets-cover-size-widget class="fixed bottom-4 right-4 z-50" /> |     <widgets-cover-size-widget class="fixed right-4 z-50" :style="{ bottom: streamLibraryItem ? '181px' : '16px' }" /> | ||||||
| 
 | 
 | ||||||
|     <div v-if="loaded && !shelves.length && !search" class="w-full flex flex-col items-center justify-center py-12"> |     <div v-if="loaded && !shelves.length && !search" class="w-full flex flex-col items-center justify-center py-12"> | ||||||
|       <p class="text-center text-2xl mb-4 py-4">{{ libraryName }} Library is empty!</p> |       <p class="text-center text-2xl mb-4 py-4">{{ libraryName }} Library is empty!</p> | ||||||
| @ -94,6 +94,9 @@ export default { | |||||||
|     }, |     }, | ||||||
|     selectedMediaItems() { |     selectedMediaItems() { | ||||||
|       return this.$store.state.globals.selectedMediaItems || [] |       return this.$store.state.globals.selectedMediaItems || [] | ||||||
|  |     }, | ||||||
|  |     streamLibraryItem() { | ||||||
|  |       return this.$store.state.streamLibraryItem | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|  | |||||||
| @ -21,7 +21,7 @@ | |||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|     <widgets-cover-size-widget class="fixed bottom-4 right-4 z-50" /> |     <widgets-cover-size-widget class="fixed right-4 z-50" :style="{ bottom: streamLibraryItem ? '181px' : '16px' }" /> | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
| @ -205,6 +205,9 @@ export default { | |||||||
|     sizeMultiplier() { |     sizeMultiplier() { | ||||||
|       const baseSize = this.isCoverSquareAspectRatio ? 192 : 120 |       const baseSize = this.isCoverSquareAspectRatio ? 192 : 120 | ||||||
|       return this.entityWidth / baseSize |       return this.entityWidth / baseSize | ||||||
|  |     }, | ||||||
|  |     streamLibraryItem() { | ||||||
|  |       return this.$store.state.streamLibraryItem | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user