This commit is contained in:
Timothy Jaeryang Baek 2025-09-13 19:04:07 +04:00
parent f68d1ba394
commit 031cf38655

View file

@ -1420,30 +1420,32 @@
<div class="flex self-center w-[1px] h-4 mx-1 bg-gray-50 dark:bg-gray-800" />
<IntegrationsMenu
selectedModels={atSelectedModel ? [atSelectedModel.id] : selectedModels}
{toggleFilters}
{showWebSearchButton}
{showImageGenerationButton}
{showCodeInterpreterButton}
bind:selectedToolIds
bind:selectedFilterIds
bind:webSearchEnabled
bind:imageGenerationEnabled
bind:codeInterpreterEnabled
onClose={async () => {
await tick();
{#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || (toggleFilters && toggleFilters.length > 0)}
<IntegrationsMenu
selectedModels={atSelectedModel ? [atSelectedModel.id] : selectedModels}
{toggleFilters}
{showWebSearchButton}
{showImageGenerationButton}
{showCodeInterpreterButton}
bind:selectedToolIds
bind:selectedFilterIds
bind:webSearchEnabled
bind:imageGenerationEnabled
bind:codeInterpreterEnabled
onClose={async () => {
await tick();
const chatInput = document.getElementById('chat-input');
chatInput?.focus();
}}
>
<div
class="bg-transparent hover:bg-gray-100 text-gray-700 dark:text-white dark:hover:bg-gray-800 rounded-full size-8 flex justify-center items-center outline-hidden focus:outline-hidden"
const chatInput = document.getElementById('chat-input');
chatInput?.focus();
}}
>
<Component className="size-4.5" strokeWidth="1.5" />
</div>
</IntegrationsMenu>
<div
class="bg-transparent hover:bg-gray-100 text-gray-700 dark:text-white dark:hover:bg-gray-800 rounded-full size-8 flex justify-center items-center outline-hidden focus:outline-hidden"
>
<Component className="size-4.5" strokeWidth="1.5" />
</div>
</IntegrationsMenu>
{/if}
<div class="ml-1 flex gap-1.5">
{#if showToolsButton}