mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update:Increase max height of libraries dropdown
This commit is contained in:
		
							parent
							
								
									f92b66a469
								
							
						
					
					
						commit
						a2fdc3e876
					
				| @ -1,6 +1,14 @@ | ||||
| <template> | ||||
|   <div v-if="currentLibrary" class="relative h-8 max-w-52 md:min-w-32" v-click-outside="clickOutsideObj"> | ||||
|     <button type="button" :disabled="disabled" class="w-10 sm:w-full relative h-full border border-white border-opacity-10 hover:border-opacity-20 rounded shadow-sm px-2 text-left text-sm cursor-pointer bg-black bg-opacity-20 text-gray-400 hover:text-gray-200" aria-haspopup="listbox" :aria-expanded="showMenu" :aria-label="$strings.ButtonLibrary + ': ' + currentLibrary.name" @click.stop.prevent="clickShowMenu"> | ||||
|     <button | ||||
|       type="button" | ||||
|       :disabled="disabled" | ||||
|       class="w-10 sm:w-full relative h-full border border-white border-opacity-10 hover:border-opacity-20 rounded shadow-sm px-2 text-left text-sm cursor-pointer bg-black bg-opacity-20 text-gray-400 hover:text-gray-200" | ||||
|       aria-haspopup="listbox" | ||||
|       :aria-expanded="showMenu" | ||||
|       :aria-label="$strings.ButtonLibrary + ': ' + currentLibrary.name" | ||||
|       @click.stop.prevent="clickShowMenu" | ||||
|     > | ||||
|       <div class="flex items-center justify-center sm:justify-start"> | ||||
|         <ui-library-icon :icon="currentLibraryIcon" class="sm:mr-1.5" /> | ||||
|         <span class="hidden sm:block truncate">{{ currentLibrary.name }}</span> | ||||
| @ -8,7 +16,7 @@ | ||||
|     </button> | ||||
| 
 | ||||
|     <transition name="menu"> | ||||
|       <ul v-show="showMenu" class="absolute z-10 -mt-px min-w-48 w-full bg-primary border border-black-200 shadow-lg max-h-56 rounded-b-md py-1 overflow-auto focus:outline-none sm:text-sm" tabindex="-1" role="listbox"> | ||||
|       <ul v-show="showMenu" class="absolute z-10 -mt-px w-full min-w-48 bg-primary border border-black-200 shadow-lg rounded-b-md py-1 overflow-auto focus:outline-none sm:text-sm librariesDropdownMenu" tabindex="-1" role="listbox"> | ||||
|         <template v-for="library in librariesFiltered"> | ||||
|           <li :key="library.id" class="text-gray-400 hover:text-white relative py-2 cursor-pointer hover:bg-black-400" role="option" tabindex="0" @keydown.enter="selectLibrary(library)" @click="selectLibrary(library)"> | ||||
|             <div class="flex items-center px-2"> | ||||
| @ -94,3 +102,9 @@ export default { | ||||
|   mounted() {} | ||||
| } | ||||
| </script> | ||||
| 
 | ||||
| <style scoped> | ||||
| .librariesDropdownMenu { | ||||
|   max-height: calc(100vh - 75px); | ||||
| } | ||||
| </style> | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user