mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 04:59:51 +00:00
feat(app): add middle-click to close tabs in review sidebar (#7094)
This commit is contained in:
parent
b88bcd49fd
commit
49d837e0c1
3 changed files with 10 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ export function SortableTab(props: { tab: string; onTabClose: (tab: string) => v
|
|||
</Tooltip>
|
||||
}
|
||||
hideCloseButton
|
||||
onMiddleClick={() => props.onTabClose(props.tab)}
|
||||
>
|
||||
<Show when={path()}>{(p) => <FileVisual path={p()} />}</Show>
|
||||
</Tabs.Trigger>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue