From 39fdd95a0ce1686e6b8ed32555462015b499b075 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 14 May 2024 12:09:30 -1000 Subject: [PATCH] refac: styling --- src/lib/components/chat/ModelSelector.svelte | 4 +- .../chat/ModelSelector/Selector.svelte | 2 +- src/lib/components/layout/Navbar.svelte | 38 +++++++++++-- src/lib/components/layout/Sidebar.svelte | 57 +++++++++++++------ 4 files changed, 75 insertions(+), 26 deletions(-) diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte index 86819afca..89efbd2c1 100644 --- a/src/lib/components/chat/ModelSelector.svelte +++ b/src/lib/components/chat/ModelSelector.svelte @@ -38,7 +38,7 @@ } -
+
{#each selectedModels as selectedModel, selectedModelIdx}
@@ -109,7 +109,7 @@
{#if showSetDefault} -
+ {/if} diff --git a/src/lib/components/chat/ModelSelector/Selector.svelte b/src/lib/components/chat/ModelSelector/Selector.svelte index 88b62a455..185f11302 100644 --- a/src/lib/components/chat/ModelSelector/Selector.svelte +++ b/src/lib/components/chat/ModelSelector/Selector.svelte @@ -204,7 +204,7 @@ diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 57b09a19b..5c7d9b274 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -2,7 +2,7 @@ import { getContext } from 'svelte'; import { toast } from 'svelte-sonner'; - import { WEBUI_NAME, chatId, modelfiles, settings, showSettings } from '$lib/stores'; + import { WEBUI_NAME, chatId, modelfiles, settings, showSettings, showSidebar } from '$lib/stores'; import { slide } from 'svelte/transition'; import ShareChatModal from '../chat/ShareChatModal.svelte'; @@ -28,8 +28,34 @@