Commit 0bc3e0a3 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

feat: tooltip added to sidebar

parent f9482275
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
import { toast } from 'svelte-sonner'; import { toast } from 'svelte-sonner';
import { slide } from 'svelte/transition'; import { slide } from 'svelte/transition';
import { WEBUI_BASE_URL } from '$lib/constants'; import { WEBUI_BASE_URL } from '$lib/constants';
import Tooltip from '../common/Tooltip.svelte';
let show = false; let show = false;
let navElement; let navElement;
...@@ -670,6 +671,7 @@ ...@@ -670,6 +671,7 @@
<div <div
class="fixed left-0 top-[50dvh] z-40 -translate-y-1/2 transition-transform translate-x-[255px] md:translate-x-[260px] rotate-0" 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 <button
id="sidebar-toggle-button" id="sidebar-toggle-button"
class=" group" class=" group"
...@@ -695,5 +697,6 @@ ...@@ -695,5 +697,6 @@
</div> </div>
</span> </span>
</button> </button>
</Tooltip>
</div> </div>
</div> </div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment