diff options
| author | Adam <[email protected]> | 2025-12-31 11:24:45 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-31 13:12:29 -0600 |
| commit | 3a1cfa6c731bc4c33348034cb918b7a4dbe2af8b (patch) | |
| tree | 48bb1174aaa7e7b8c0b9b7a69219e6c4a2338a3a /packages/app/src/components | |
| parent | a2857bba8305976761c55fda269d7fb79c951b8c (diff) | |
| download | opencode-3a1cfa6c731bc4c33348034cb918b7a4dbe2af8b.tar.gz opencode-3a1cfa6c731bc4c33348034cb918b7a4dbe2af8b.zip | |
chore(app): keybind tooltip component
Diffstat (limited to 'packages/app/src/components')
| -rw-r--r-- | packages/app/src/components/prompt-input.tsx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 9cc1579fb..42a8e107a 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -11,7 +11,7 @@ import { useSync } from "@/context/sync" import { FileIcon } from "@opencode-ai/ui/file-icon" import { Button } from "@opencode-ai/ui/button" import { Icon } from "@opencode-ai/ui/icon" -import { Tooltip } from "@opencode-ai/ui/tooltip" +import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip" import { IconButton } from "@opencode-ai/ui/icon-button" import { Select } from "@opencode-ai/ui/select" import { getDirectory, getFilename } from "@opencode-ai/util/path" @@ -1355,15 +1355,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { </div> </Match> <Match when={store.mode === "normal"}> - <Tooltip - placement="top" - value={ - <div class="flex items-center gap-2"> - <span>Cycle agent</span> - <span class="text-icon-base text-12-medium">{command.keybind("agent.cycle")}</span> - </div> - } - > + <TooltipKeybind placement="top" title="Cycle agent" keybind={command.keybind("agent.cycle")}> <Select options={local.agent.list().map((agent) => agent.name)} current={local.agent.current()?.name ?? ""} @@ -1371,7 +1363,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { class="capitalize" variant="ghost" /> - </Tooltip> + </TooltipKeybind> <Tooltip placement="top" value={ |
