Skip to content

Commit 4205fbd

Browse files
committed
tweak(app): show keybind on context tab close
1 parent fc52e4b commit 4205fbd

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

packages/app/src/pages/session/session-side-panel.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createMediaQuery } from "@solid-primitives/media"
44
import { useParams } from "@solidjs/router"
55
import { Tabs } from "@opencode-ai/ui/tabs"
66
import { IconButton } from "@opencode-ai/ui/icon-button"
7-
import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip"
7+
import { TooltipKeybind } from "@opencode-ai/ui/tooltip"
88
import { ResizeHandle } from "@opencode-ai/ui/resize-handle"
99
import { Mark } from "@opencode-ai/ui/logo"
1010
import { DragDropProvider, DragDropSensors, DragOverlay, SortableProvider, closestCenter } from "@thisbeyond/solid-dnd"
@@ -246,15 +246,20 @@ export function SessionSidePanel(props: {
246246
<Tabs.Trigger
247247
value="context"
248248
closeButton={
249-
<Tooltip value={language.t("common.closeTab")} placement="bottom" gutter={10}>
249+
<TooltipKeybind
250+
title={language.t("common.closeTab")}
251+
keybind={command.keybind("tab.close")}
252+
placement="bottom"
253+
gutter={10}
254+
>
250255
<IconButton
251256
icon="close-small"
252257
variant="ghost"
253258
class="h-5 w-5"
254259
onClick={() => tabs().close("context")}
255260
aria-label={language.t("common.closeTab")}
256261
/>
257-
</Tooltip>
262+
</TooltipKeybind>
258263
}
259264
hideCloseButton
260265
onMiddleClick={() => tabs().close("context")}

0 commit comments

Comments
 (0)