Przeglądaj źródła

fix: upload img icon mis-align in the chat input area (#8263)

非法操作 7 miesięcy temu
rodzic
commit
678bbf8fe8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      web/app/components/base/chat/chat/chat-input.tsx

+ 1 - 1
web/app/components/base/chat/chat/chat-input.tsx

@@ -159,7 +159,7 @@ const ChatInput: FC<ChatInputProps> = ({
           {
             visionConfig?.enabled && (
               <>
-                <div className='absolute bottom-2 left-2 flex items-center'>
+                <div className={cn('absolute bottom-2 flex items-center', noSpacing ? 'left-2' : 'left-10')}>
                   <ChatImageUploader
                     settings={visionConfig}
                     onUpload={onUpload}