From 341239c51ae3fac046ab003a63afc1914db9f555 Mon Sep 17 00:00:00 2001 From: yorn <1057707203@qq.com> Date: Mon, 8 Dec 2025 17:31:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86an?= =?UTF-8?q?t-design=E7=BB=84=E4=BB=B6=E7=9A=84=E5=85=A8=E5=B1=80=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E8=A6=86=E7=9B=96=E3=80=82=202.=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=81=8A=E5=A4=A9=E6=A1=86=E6=96=87=E6=9C=AC=E6=BA=A2?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/dify-chat/chat-input.tsx | 2 +- app/routes/contract-draft.$draftId.tsx | 2 +- app/styles/components/chat-with-llm/chat-input.css | 13 +------------ app/styles/main.css | 8 +++++++- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/app/components/dify-chat/chat-input.tsx b/app/components/dify-chat/chat-input.tsx index f7d3964..17499f7 100644 --- a/app/components/dify-chat/chat-input.tsx +++ b/app/components/dify-chat/chat-input.tsx @@ -215,7 +215,7 @@ export default function ChatInput({ placeholder={placeholder} disabled={disabled} autoSize={{ minRows: 1, maxRows: 6 }} - className="chat-input-textarea" + className="chat-input-textarea focus:outline-0 focus:outline-offset-0 focus:shadow-none focus:border-none" /> diff --git a/app/routes/contract-draft.$draftId.tsx b/app/routes/contract-draft.$draftId.tsx index 9b953ba..a2cb937 100644 --- a/app/routes/contract-draft.$draftId.tsx +++ b/app/routes/contract-draft.$draftId.tsx @@ -391,7 +391,7 @@ export default function ContractDraftPage() { messageService.show({ type: 'warning', title: '确认返回', - message: '确定要返回吗?未保存的更改将丢失。', + message: '确定要返回吗?所有已更改的内容将会丢失。', confirmText: '确定返回', cancelText: '取消', onConfirm: () => { diff --git a/app/styles/components/chat-with-llm/chat-input.css b/app/styles/components/chat-with-llm/chat-input.css index daaf409..3a86b79 100644 --- a/app/styles/components/chat-with-llm/chat-input.css +++ b/app/styles/components/chat-with-llm/chat-input.css @@ -29,8 +29,6 @@ .chat-input-textarea-wrapper { flex: 1; - min-height: 40px; - max-height: 120px; margin: 0 8px; } @@ -40,8 +38,6 @@ box-shadow: none !important; padding: 8px 0 !important; background: transparent !important; - min-height: 40px; - max-height: 120px; } .chat-input-button { @@ -83,13 +79,10 @@ .chat-input-textarea-wrapper { margin: 0 4px; - min-height: 36px; - max-height: 100px; } .chat-input-textarea { - min-height: 36px; - max-height: 100px; + font-size: 14px; } @@ -109,13 +102,9 @@ .chat-input-textarea-wrapper { margin: 0 2px; - min-height: 32px; - max-height: 80px; } .chat-input-textarea { - min-height: 32px; - max-height: 80px; font-size: 13px; padding: 6px 0 !important; } diff --git a/app/styles/main.css b/app/styles/main.css index 46975af..93bb120 100644 --- a/app/styles/main.css +++ b/app/styles/main.css @@ -106,6 +106,11 @@ border-color: #00684a; box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.1); } + + .ant-input:focus, + .ant-input:active, + .ant-input-outlined:focus-within, + .ant-select-focused, .ant-select:active, .ant-select:hover{ outline: none; @@ -113,8 +118,9 @@ border-color: #00684a; box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.1); } - + + } /* 组件相关样式 */