removed the new tab button

This commit is contained in:
Arjun 2026-02-17 22:04:01 +05:30
parent d2f481f88e
commit 13653eed19

View file

@ -8,7 +8,6 @@ import {
ChevronsDownUp, ChevronsDownUp,
ChevronsUpDown, ChevronsUpDown,
Copy, Copy,
ExternalLink,
FilePlus, FilePlus,
FolderPlus, FolderPlus,
AlertTriangle, AlertTriangle,
@ -1049,19 +1048,6 @@ function Tree({
> >
<div className="flex w-full items-center gap-1 min-w-0"> <div className="flex w-full items-center gap-1 min-w-0">
<span className="min-w-0 flex-1 truncate">{item.name}</span> <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> </div>
</SidebarMenuButton> </SidebarMenuButton>
</SidebarMenuItem> </SidebarMenuItem>
@ -1209,19 +1195,6 @@ function TasksSection({
) : null} ) : null}
{!processingRunIds?.has(run.id) && ( {!processingRunIds?.has(run.id) && (
<div className="shrink-0 hidden group-hover/chat-item:flex items-center gap-0.5"> <div className="shrink-0 hidden group-hover/chat-item:flex items-center gap-0.5">
{actions?.onOpenInNewTab && (
<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>
)}
<button <button
type="button" type="button"
className="flex items-center justify-center text-muted-foreground hover:text-destructive transition-colors" className="flex items-center justify-center text-muted-foreground hover:text-destructive transition-colors"