summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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()}