From 771482c6e649f9447693a55262b30bf92daf62d9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 18 Sep 2024 01:25:28 +0200 Subject: [PATCH] refac --- src/lib/components/chat/ChatControls.svelte | 27 ++++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index 4f22c0326..73d249c1a 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -78,15 +78,24 @@ showControls.set(false); }} > -
- { - showControls.set(false); - }} - {models} - bind:chatFiles - bind:params - /> +
+ {#if $showOverview} + { + showControls.set(false); + }} + /> + {:else} + { + showControls.set(false); + }} + {models} + bind:chatFiles + bind:params + /> + {/if}
{/if}