forked from open-webui/open-webui
		
	feat: tooltip added to sidebar
This commit is contained in:
		
							parent
							
								
									f9482275f2
								
							
						
					
					
						commit
						0bc3e0a302
					
				
					 1 changed files with 27 additions and 24 deletions
				
			
		|  | @ -19,6 +19,7 @@ | |||
| 	import { toast } from 'svelte-sonner'; | ||||
| 	import { slide } from 'svelte/transition'; | ||||
| 	import { WEBUI_BASE_URL } from '$lib/constants'; | ||||
| 	import Tooltip from '../common/Tooltip.svelte'; | ||||
| 
 | ||||
| 	let show = false; | ||||
| 	let navElement; | ||||
|  | @ -670,6 +671,7 @@ | |||
| 	<div | ||||
| 		class="fixed left-0 top-[50dvh] z-40 -translate-y-1/2 transition-transform translate-x-[255px] md:translate-x-[260px] rotate-0" | ||||
| 	> | ||||
| 		<Tooltip placement="right" content={`${show ? 'Close' : 'Open'} sidebar`}> | ||||
| 			<button | ||||
| 				id="sidebar-toggle-button" | ||||
| 				class=" group" | ||||
|  | @ -695,5 +697,6 @@ | |||
| 					</div> | ||||
| 				</span> | ||||
| 			</button> | ||||
| 		</Tooltip> | ||||
| 	</div> | ||||
| </div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek