feat: tooltip added to sidebar

This commit is contained in:
Timothy J. Baek 2024-03-02 01:21:00 -08:00
parent f9482275f2
commit 0bc3e0a302

View file

@ -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>