From f045b59b2d7c25da4dc214a4c166c3d4cbee83f7 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Thu, 19 Mar 2026 16:07:42 +0800 Subject: [PATCH] fix(web): ui update --- web/src/components/Chat/ChatInput.tsx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/web/src/components/Chat/ChatInput.tsx b/web/src/components/Chat/ChatInput.tsx index 508b0d0c..7daf935c 100644 --- a/web/src/components/Chat/ChatInput.tsx +++ b/web/src/components/Chat/ChatInput.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2025-12-10 16:46:14 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-06 13:36:20 + * @Last Modified time: 2026-03-19 16:05:56 */ import { type FC, useEffect, useMemo } from 'react' import { Flex, Input, Form } from 'antd' @@ -109,15 +109,20 @@ const ChatInput: FC = ({ } return (
- {(file.type.includes('doc') || file.type.includes('docx') || file.type.includes('word') || file.type.includes('wordprocessingml.document')) &&
} - {(file.type.includes('pdf')) &&
} - {(file.type.includes('excel') || file.type.includes('spreadsheetml.sheet') || file.type.includes('csv')) &&
} + {file.type.includes('pdf') + ?
+ : (file.type.includes('excel') || file.type.includes('spreadsheetml.sheet') || file.type.includes('csv')) + ?
+ : (file.type.includes('doc') || file.type.includes('docx') || file.type.includes('word') || file.type.includes('wordprocessingml.document')) + ?
+ : null + }
{file.name}
{file.type} ยท {file.size}