mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-28 19:05:31 +02:00
removed the new tab button
This commit is contained in:
parent
3cab3bae05
commit
52313b9718
1 changed files with 1 additions and 30 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue