Skip to content

Commit a0e1904

Browse files
devartifexCopilot
andcommitted
feat(ui): remove New Chat button from TopBar (keep in Sidebar only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3313352 commit a0e1904

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/lib/components/TopBar.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
activeSkillCount: number;
1111
onToggleSidebar: () => void;
1212
onOpenModelSheet: () => void;
13-
onNewChat: () => void;
1413
}
1514
1615
const {
@@ -21,7 +20,6 @@
2120
activeSkillCount,
2221
onToggleSidebar,
2322
onOpenModelSheet,
24-
onNewChat,
2523
}: Props = $props();
2624
2725
const connectionDotClass = $derived.by(() => {
@@ -73,13 +71,6 @@
7371
⚡ {activeSkillCount}
7472
</span>
7573
{/if}
76-
77-
<button class="tb-btn newchat-btn" onclick={onNewChat} aria-label="New chat">
78-
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
79-
<path d="M3 13.5V16H5.5L14 7.5L11 4.5L3 13.5Z"/>
80-
<path d="M14 2L16 4L14 7.5L11 4.5L14 2Z"/>
81-
</svg>
82-
</button>
8374
</div>
8475

8576
<style>

src/routes/+page.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@
313313
{activeSkillCount}
314314
onToggleSidebar={() => sidebarOpen = true}
315315
onOpenModelSheet={() => modelSheetOpen = true}
316-
onNewChat={handleNewChat}
317316
/>
318317

319318
<div class="terminal">

0 commit comments

Comments
 (0)