From 4053de5825c07b998c36ce9bb2c156d781679f10 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 1 Dec 2024 23:16:00 -0800 Subject: [PATCH] refac: styling --- src/lib/components/chat/MessageInput.svelte | 217 +++++++++--------- .../chat/MessageInput/Commands.svelte | 2 +- .../MessageInput/Commands/Knowledge.svelte | 2 +- .../chat/MessageInput/Commands/Models.svelte | 2 +- .../chat/MessageInput/Commands/Prompts.svelte | 2 +- 5 files changed, 113 insertions(+), 112 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 4df2b552a..36dc5f0d1 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -305,7 +305,7 @@
{#if atSelectedModel !== undefined || selectedToolIds.length > 0 || webSearchEnabled}
{#if selectedToolIds.length > 0}
@@ -462,7 +462,7 @@ }} >
{#if files.length > 0} @@ -967,12 +967,12 @@ /> {/if} -
+
{#if !history?.currentId || history.messages[history.currentId]?.done == true} {/if} + + {#if !history.currentId || history.messages[history.currentId]?.done == true} + {#if prompt === ''} +
+ + + +
+ {:else} +
+ + + +
+ {/if} + {:else} +
+ + + +
+ {/if}
-
- {#if !history.currentId || history.messages[history.currentId]?.done == true} - {#if prompt === ''} -
- - - -
- {:else} -
- - - -
- {/if} - {:else} -
- - - -
- {/if} -
{/if}
diff --git a/src/lib/components/chat/MessageInput/Commands.svelte b/src/lib/components/chat/MessageInput/Commands.svelte index 1dccb4aa6..a9c77ab7d 100644 --- a/src/lib/components/chat/MessageInput/Commands.svelte +++ b/src/lib/components/chat/MessageInput/Commands.svelte @@ -106,7 +106,7 @@ {:else}
0 || prompt.split(' ')?.at(0)?.substring(1).startsWith('http')}
0}
0}