mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Replace unicode x in playback speed control with regular x #1508
This commit is contained in:
		
							parent
							
								
									481611ff33
								
							
						
					
					
						commit
						3c5dc17e3c
					
				| @ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <div ref="wrapper" class="relative ml-4 sm:ml-8" v-click-outside="clickOutside"> |   <div ref="wrapper" class="relative ml-4 sm:ml-8" v-click-outside="clickOutside"> | ||||||
|     <div class="flex items-center justify-center text-gray-300 cursor-pointer h-full" @mousedown.prevent @mouseup.prevent @click="setShowMenu(true)"> |     <div class="flex items-center justify-center text-gray-300 cursor-pointer h-full" @mousedown.prevent @mouseup.prevent @click="setShowMenu(true)"> | ||||||
|       <span class="font-mono uppercase text-gray-200 text-sm sm:text-base">{{ playbackRate.toFixed(1) }}<span class="text-base sm:text-lg">⨯</span></span> |       <span class="font-mono uppercase text-gray-200 text-sm sm:text-base">{{ playbackRate.toFixed(1) }}<span class="text-base">x</span></span> | ||||||
|     </div> |     </div> | ||||||
|     <div v-show="showMenu" class="absolute -top-20 z-20 bg-bg border-black-200 border shadow-xl rounded-lg" :style="{ left: menuLeft + 'px' }"> |     <div v-show="showMenu" class="absolute -top-20 z-20 bg-bg border-black-200 border shadow-xl rounded-lg" :style="{ left: menuLeft + 'px' }"> | ||||||
|       <div class="absolute -bottom-1.5 right-0 w-full flex justify-center" :style="{ left: arrowLeft + 'px' }"> |       <div class="absolute -bottom-1.5 right-0 w-full flex justify-center" :style="{ left: arrowLeft + 'px' }"> | ||||||
| @ -11,7 +11,7 @@ | |||||||
|         <template v-for="rate in rates"> |         <template v-for="rate in rates"> | ||||||
|           <div :key="rate" class="h-full border-black-300 w-11 cursor-pointer border rounded-sm" :class="value === rate ? 'bg-black-100' : 'hover:bg-black hover:bg-opacity-10'" style="min-width: 44px; max-width: 44px" @click="set(rate)"> |           <div :key="rate" class="h-full border-black-300 w-11 cursor-pointer border rounded-sm" :class="value === rate ? 'bg-black-100' : 'hover:bg-black hover:bg-opacity-10'" style="min-width: 44px; max-width: 44px" @click="set(rate)"> | ||||||
|             <div class="w-full h-full flex justify-center items-center"> |             <div class="w-full h-full flex justify-center items-center"> | ||||||
|               <p class="text-xs text-center font-mono">{{ rate }}<span class="text-sm">⨯</span></p> |               <p class="text-xs text-center font-mono">{{ rate }}<span class="text-sm">x</span></p> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|         </template> |         </template> | ||||||
| @ -19,7 +19,7 @@ | |||||||
|       <div class="w-full py-1 px-4"> |       <div class="w-full py-1 px-4"> | ||||||
|         <div class="flex items-center justify-between"> |         <div class="flex items-center justify-between"> | ||||||
|           <ui-icon-btn :disabled="!canDecrement" icon="remove" @click="decrement" /> |           <ui-icon-btn :disabled="!canDecrement" icon="remove" @click="decrement" /> | ||||||
|           <p class="px-2 text-2xl sm:text-3xl">{{ playbackRate }}<span class="text-2xl">⨯</span></p> |           <p class="px-2 text-2xl sm:text-3xl">{{ playbackRate }}<span class="text-2xl">x</span></p> | ||||||
|           <ui-icon-btn :disabled="!canIncrement" icon="add" @click="increment" /> |           <ui-icon-btn :disabled="!canIncrement" icon="add" @click="increment" /> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user