diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index 9cddccb899..4a200775b3 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -1,5 +1,5 @@ + + + +
+ + {#if loading} +
+ +
+ {:else if error} + + {:else} +
+ + + + {#if preview?.animations.length} + + + {/if} +
+ {/if} +
diff --git a/src/lib/components/layout/Navbar/Menu.svelte b/src/lib/components/layout/Navbar/Menu.svelte index fe7e76ae40..97bfb47081 100644 --- a/src/lib/components/layout/Navbar/Menu.svelte +++ b/src/lib/components/layout/Navbar/Menu.svelte @@ -11,6 +11,7 @@ import { showControls, + showOverview, showArtifacts, mobile, temporaryChatEnabled, @@ -32,6 +33,7 @@ import Clipboard from '$lib/components/icons/Clipboard.svelte'; import AdjustmentsHorizontal from '$lib/components/icons/AdjustmentsHorizontal.svelte'; import Cube from '$lib/components/icons/Cube.svelte'; + import Map from '$lib/components/icons/Map.svelte'; import Folder from '$lib/components/icons/Folder.svelte'; import Share from '$lib/components/icons/Share.svelte'; import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte'; @@ -391,7 +393,21 @@
{$i18n.t('Scroll to Top')}
+ {/if} + {#if Object.keys(chat?.chat?.history?.messages ?? {}).length > 0} + + {/if} + + {#if scrollToTop}
{/if} @@ -428,7 +444,8 @@ {/if} {#if chat?.id && !$temporaryChatEnabled} - showControls.set('comments')} + showControls.set('comments')} menu resource={{ resource_type: 'chat', resource_id: chat.id }} onOpen={() => (show = false)} diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index 88cde9289f..693ec5b442 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -181,7 +181,6 @@ export const showControls = writable< | 'controls' | 'files' | 'comments' - | 'overview' | (CommentTarget & { tab: 'comments'; comment_id?: string }) >(false); export const showEmbeds = writable(false);