From 8386b286e2eefd9c27ec493ee519d547a3749401 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 7 Nov 2023 23:23:27 -0800 Subject: [PATCH] feat: messages ui update --- src/routes/+page.svelte | 376 +++++++++++++++++++++------------------- 1 file changed, 193 insertions(+), 183 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 97b2cfde..ea93b8df 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -857,7 +857,7 @@ -
+
{#if messages.length == 0}
@@ -873,211 +873,221 @@
{:else} {#each messages as message, messageIdx} -
-
-
-
+
+
+
+
- {#if message.role != 'user' && message.content == ''} -
-
-
-
+
+
+ {message.role === 'user' ? 'You' : 'Ollama'} +
-
-
-
-
-
-
-
-
-
+ {#if message.role !== 'user' && message.content === ''} +
+
+
+
-
+
+
+
+
+
+
+
+
+
+ +
+
-
- {:else} -
- {#if message.role == 'user'} - {#if message?.edit === true} -
-