From 4c7344a08e048bbcd9dba5896adc88234a39ceed Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 7 Nov 2026 23:14:29 +0900 Subject: [PATCH] refac --- src/lib/components/chat/ChatTabs.svelte | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib/components/chat/ChatTabs.svelte b/src/lib/components/chat/ChatTabs.svelte index 40b5332c72..a04f6ef287 100644 --- a/src/lib/components/chat/ChatTabs.svelte +++ b/src/lib/components/chat/ChatTabs.svelte @@ -78,6 +78,7 @@ } from '$lib/apis/terminal'; import { formatChord, keybindings, matchKeybinding, Shortcut } from '$lib/shortcuts'; import HotkeyHint from '../common/HotkeyHint.svelte'; + import Spinner from '../common/Spinner.svelte'; import Dropdown from '../common/Dropdown.svelte'; import DropdownMenu from '../common/DropdownMenu.svelte'; import Icon from './FileNav/Icon.svelte'; @@ -1424,15 +1425,16 @@ }}>{$i18n.t('Retry')} - {:else if !viewReady} + {:else if chatLoading || !viewReady}
- {$i18n.t('Loading…')} +
{/if} - {#if fullWidth} + {#if fullWidth && viewReady && !chatLoading}