Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
0bc3e0a3
"src/routes/vscode:/vscode.git/clone" did not exist on "92700302b94c16d27ab2ddceb6a6c604b76fd20d"
Commit
0bc3e0a3
authored
Mar 02, 2024
by
Timothy J. Baek
Browse files
feat: tooltip added to sidebar
parent
f9482275
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+27
-24
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
0bc3e0a3
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment