diff options
| author | David Hill <[email protected]> | 2026-03-05 23:43:19 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2026-03-05 23:44:00 +0000 |
| commit | 39691e51741c753852a2ebdc21424075e666671b (patch) | |
| tree | bdefd66a4e18a6fae64b01f02374c3ff0be951d8 | |
| parent | adaee663641e0a7e4a8f1bc3f0ca1bf1b9439a40 (diff) | |
| download | opencode-39691e51741c753852a2ebdc21424075e666671b.tar.gz opencode-39691e51741c753852a2ebdc21424075e666671b.zip | |
tui: remove keyboard shortcut tooltips from new session and new workspace buttons in the sidebar
| -rw-r--r-- | packages/app/src/pages/layout.tsx | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx index 2019ca4e5..bd0315efb 100644 --- a/packages/app/src/pages/layout.tsx +++ b/packages/app/src/pages/layout.tsx @@ -22,7 +22,7 @@ import { ResizeHandle } from "@opencode-ai/ui/resize-handle" import { Button } from "@opencode-ai/ui/button" import { Icon } from "@opencode-ai/ui/icon" import { IconButton } from "@opencode-ai/ui/icon-button" -import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip" +import { Tooltip } from "@opencode-ai/ui/tooltip" import { DropdownMenu } from "@opencode-ai/ui/dropdown-menu" import { Dialog } from "@opencode-ai/ui/dialog" import { getFilename } from "@opencode-ai/util/path" @@ -1937,20 +1937,14 @@ export default function Layout(props: ParentProps) { fallback={ <> <div class="shrink-0 py-4 px-3"> - <TooltipKeybind - title={language.t("command.session.new")} - keybind={command.keybind("session.new")} - placement="top" + <Button + size="large" + icon="plus-small" + class="w-full" + onClick={() => navigateWithSidebarReset(`/${base64Encode(p.worktree)}/session`)} > - <Button - size="large" - icon="plus-small" - class="w-full" - onClick={() => navigateWithSidebarReset(`/${base64Encode(p.worktree)}/session`)} - > - {language.t("command.session.new")} - </Button> - </TooltipKeybind> + {language.t("command.session.new")} + </Button> </div> <div class="flex-1 min-h-0"> <LocalWorkspace @@ -1965,15 +1959,9 @@ export default function Layout(props: ParentProps) { > <> <div class="shrink-0 py-4 px-3"> - <TooltipKeybind - title={language.t("workspace.new")} - keybind={command.keybind("workspace.new")} - placement="top" - > - <Button size="large" icon="plus-small" class="w-full" onClick={() => createWorkspace(p)}> - {language.t("workspace.new")} - </Button> - </TooltipKeybind> + <Button size="large" icon="plus-small" class="w-full" onClick={() => createWorkspace(p)}> + {language.t("workspace.new")} + </Button> </div> <div class="relative flex-1 min-h-0"> <DragDropProvider |
