chore: attachment icon conditional
This commit is contained in:
parent
df41bad465
commit
e3eb8e909b
@ -488,20 +488,22 @@ const ChatInput = ({ model, className, initialMessage }: ChatInputProps) => {
|
|||||||
useLastUsedModel={initialMessage}
|
useLastUsedModel={initialMessage}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{/* File attachment - always available */}
|
{/* File attachment - show only for models with mmproj */}
|
||||||
<div
|
{selectedModel?.settings?.offload_mmproj && (
|
||||||
className="h-6 p-1 ml-1 flex items-center justify-center rounded-sm hover:bg-main-view-fg/10 transition-all duration-200 ease-in-out gap-1"
|
<div
|
||||||
onClick={handleAttachmentClick}
|
className="h-6 p-1 ml-1 flex items-center justify-center rounded-sm hover:bg-main-view-fg/10 transition-all duration-200 ease-in-out gap-1"
|
||||||
>
|
onClick={handleAttachmentClick}
|
||||||
<IconPaperclip size={18} className="text-main-view-fg/50" />
|
>
|
||||||
<input
|
<IconPaperclip size={18} className="text-main-view-fg/50" />
|
||||||
type="file"
|
<input
|
||||||
ref={fileInputRef}
|
type="file"
|
||||||
className="hidden"
|
ref={fileInputRef}
|
||||||
multiple
|
className="hidden"
|
||||||
onChange={handleFileChange}
|
multiple
|
||||||
/>
|
onChange={handleFileChange}
|
||||||
</div>
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{/* Microphone - always available - Temp Hide */}
|
{/* Microphone - always available - Temp Hide */}
|
||||||
{/* <div className="h-6 p-1 flex items-center justify-center rounded-sm hover:bg-main-view-fg/10 transition-all duration-200 ease-in-out gap-1">
|
{/* <div className="h-6 p-1 flex items-center justify-center rounded-sm hover:bg-main-view-fg/10 transition-all duration-200 ease-in-out gap-1">
|
||||||
<IconMicrophone size={18} className="text-main-view-fg/50" />
|
<IconMicrophone size={18} className="text-main-view-fg/50" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user