|
|
@@ -38,6 +38,7 @@ import { IconButton } from "@opencode-ai/ui/icon-button"
|
|
|
import { Select } from "@opencode-ai/ui/select"
|
|
|
import { getDirectory, getFilename } from "@opencode-ai/util/path"
|
|
|
import { useDialog } from "@opencode-ai/ui/context/dialog"
|
|
|
+import { ImagePreview } from "@opencode-ai/ui/image-preview"
|
|
|
import { ModelSelectorPopover } from "@/components/dialog-select-model"
|
|
|
import { DialogSelectModelUnpaid } from "@/components/dialog-select-model-unpaid"
|
|
|
import { useProviders } from "@/hooks/use-providers"
|
|
|
@@ -1484,7 +1485,10 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|
|
<img
|
|
|
src={attachment.dataUrl}
|
|
|
alt={attachment.filename}
|
|
|
- class="size-16 rounded-md object-cover border border-border-base"
|
|
|
+ class="size-16 rounded-md object-cover border border-border-base hover:border-border-strong-base transition-colors"
|
|
|
+ onClick={() =>
|
|
|
+ dialog.show(() => <ImagePreview src={attachment.dataUrl} alt={attachment.filename} />)
|
|
|
+ }
|
|
|
/>
|
|
|
</Show>
|
|
|
<button
|