From 7f47718a693c7ef79424c2b8fe25f81d45dba85a Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 17 Nov 2023 13:17:30 -0800 Subject: [PATCH] feat: ui update --- src/lib/components/layout/Navbar.svelte | 164 +++++++++++++----------- src/lib/constants.ts | 2 +- src/routes/+page.svelte | 47 +------ tailwind.config.js | 2 +- 4 files changed, 92 insertions(+), 123 deletions(-) diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 4315e5dac..4db018d3d 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -45,65 +45,41 @@
-
+
@@ -114,35 +90,44 @@ bind:this={navElement} class="h-screen {show ? '' - : '-translate-x-72'} w-72 fixed top-0 left-0 z-40 transition bg-[#0a0a0a] text-gray-200 shadow-2xl text-sm + : '-translate-x-[260px]'} w-[260px] fixed top-0 left-0 z-40 transition bg-[#0a0a0a] text-gray-200 shadow-2xl text-sm " >
-
- + -->
{#each _chats as chat, i}
{#if chatTitleEditIdx === chat.id} @@ -218,7 +203,7 @@ {#if chat.id === selectedChatId} -
+
{#if chatTitleEditIdx === chat.id}
+ +
+ +
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 57f7cfe6f..48a9d2e5f 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -8,7 +8,7 @@ export const API_BASE_URL = : `http://localhost:11434/api` : PUBLIC_API_BASE_URL; -export const WEB_UI_VERSION = 'v1.0.0-alpha.6'; +export const WEB_UI_VERSION = 'v1.0.0-alpha.8'; // Source: https://kit.svelte.dev/docs/modules#$env-static-public // This feature, akin to $env/static/private, exclusively incorporates environment variables diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index de09e7af8..56be3a1f1 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1093,52 +1093,7 @@
-
- - +
{#each selectedModels as selectedModel, selectedModelIdx}
diff --git a/tailwind.config.js b/tailwind.config.js index 1512ddac1..b97b22db0 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -14,7 +14,7 @@ export default { 500: '#8e8ea0', 600: '#565869', 700: '#40414f', - 800: '#33353E', + 800: '#343541', 900: '#202123', 950: '#050509' }