From 1b35af1c62260de731ea7ec4c9b6a786fe0a1b27 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 7 Nov 2023 22:46:11 -0800 Subject: [PATCH] feat: ui update --- src/lib/components/layout/Navbar.svelte | 2 +- src/routes/+page.svelte | 164 +++++++++++------------- 2 files changed, 78 insertions(+), 88 deletions(-) diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 9d3014c7..afbc863d 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -108,7 +108,7 @@ bind:this={navElement} class="h-screen {show ? '' - : '-translate-x-72'} w-72 fixed top-0 left-0 z-40 transition bg-gray-900 text-gray-200 shadow-2xl text-sm + : '-translate-x-72'} w-72 fixed top-0 left-0 z-40 transition bg-black text-gray-200 shadow-2xl text-sm " >
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 65eb2dd7..97b2cfde 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -883,7 +883,7 @@ ? settings.gravatarUrl : '/user' : '/favicon'}.png" - class=" max-w-[32px] object-cover rounded" + class=" max-w-[32px] object-cover rounded-full" />
@@ -956,7 +956,29 @@ {@html marked(message.content.replace('\\\\', '\\\\\\'))} {#if message.done} -
+
+ + + {/if}
{/if} {/if} @@ -1033,28 +1077,6 @@ {/if} - {:else if message.done} - {/if}
@@ -1067,61 +1089,11 @@
-
+
{#if messages.length == 0 && suggestions !== 'false'} {/if} - - {#if messages.length != 0 && messages.at(-1).role == 'assistant'} - {#if messages.at(-1).done == true} -
- -
- {:else} -
- -
- {/if} - {/if}
{ @@ -1148,35 +1120,53 @@ }} />
-
+
{#if messages.length == 0 || messages.at(-1).done == true} {:else} -
...
+ {/if}
- LLMs may produce inaccurate information about people, places, or facts. + LLMs can make mistakes. Verify important information.