removed the new tab button

This commit is contained in:
Arjun 2026-02-17 22:04:01 +05:30 committed by tusharmagar
parent 3cab3bae05
commit 52313b9718

View file

@ -8,7 +8,6 @@ import {
ChevronsDownUp,
ChevronsUpDown,
Copy,
ExternalLink,
FilePlus,
FolderPlus,
AlertTriangle,
@ -1049,19 +1048,6 @@ function Tree({
>
<div className="flex w-full items-center gap-1 min-w-0">
<span className="min-w-0 flex-1 truncate">{item.name}</span>
{actions.onOpenInNewTab && (
<button
type="button"
className="shrink-0 hidden group-hover/file-item:flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors"
onClick={(e) => {
e.stopPropagation()
actions.onOpenInNewTab!(item.path)
}}
aria-label="Open in new tab"
>
<ExternalLink className="size-3.5" />
</button>
)}
</div>
</SidebarMenuButton>
</SidebarMenuItem>
@ -1205,25 +1191,10 @@ function TasksSection({
) : null}
<span className="min-w-0 flex-1 truncate text-sm">{run.title || '(Untitled chat)'}</span>
{run.createdAt ? (
<span className={`shrink-0 text-[10px] text-muted-foreground${processingRunIds?.has(run.id) ? '' : ' group-hover/chat-item:hidden'}`}>
<span className="shrink-0 text-[10px] text-muted-foreground">
{formatRunTime(run.createdAt)}
</span>
) : null}
{!processingRunIds?.has(run.id) && actions?.onOpenInNewTab && (
<div className="shrink-0 hidden group-hover/chat-item:flex items-center gap-0.5">
<button
type="button"
className="flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors"
onClick={(e) => {
e.stopPropagation()
actions.onOpenInNewTab!(run.id)
}}
aria-label="Open in new tab"
>
<ExternalLink className="size-3.5" />
</button>
</div>
)}
</div>
</SidebarMenuButton>
</ContextMenuTrigger>