summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-18 12:51:51 -0600
committerAdam <[email protected]>2025-12-18 13:03:14 -0600
commit228b6444f8845dd73d9c6a22f57cc5107e4f002a (patch)
treeb0defba92114c2fae11ba5a67e1c93880ed12198 /packages
parent9998efdae2209daa5add2b79f202a5b703ebe762 (diff)
downloadopencode-228b6444f8845dd73d9c6a22f57cc5107e4f002a.tar.gz
opencode-228b6444f8845dd73d9c6a22f57cc5107e4f002a.zip
fix(desktop): don't show image button in shell mode
Diffstat (limited to 'packages')
-rw-r--r--packages/desktop/src/components/prompt-input.tsx20
1 files changed, 11 insertions, 9 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx
index 98092f5d5..7f6c0ee4f 100644
--- a/packages/desktop/src/components/prompt-input.tsx
+++ b/packages/desktop/src/components/prompt-input.tsx
@@ -1004,15 +1004,17 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
e.currentTarget.value = ""
}}
/>
- <Tooltip placement="top" value="Attach image">
- <IconButton
- type="button"
- icon="photo"
- variant="ghost"
- class="h-10 w-8"
- onClick={() => fileInputRef.click()}
- />
- </Tooltip>
+ <Show when={store.mode === "normal"}>
+ <Tooltip placement="top" value="Attach image">
+ <IconButton
+ type="button"
+ icon="photo"
+ variant="ghost"
+ class="h-10 w-8"
+ onClick={() => fileInputRef.click()}
+ />
+ </Tooltip>
+ </Show>
<Tooltip
placement="top"
inactive={!prompt.dirty() && !working()}