From 98635e5247a245d408d42fd06f935452a85eea8b Mon Sep 17 00:00:00 2001 From: Huarch Date: Wed, 20 May 2026 11:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=81=8A=E5=A4=A9=E6=A1=86?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E9=99=90=E5=88=B6=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20header=20=E6=8C=89=E9=92=AE=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/AgentHeader.tsx | 11 +++++------ src/components/chat/GlobalChatbox.tsx | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/chat/AgentHeader.tsx b/src/components/chat/AgentHeader.tsx index 3682457..d6454ff 100644 --- a/src/components/chat/AgentHeader.tsx +++ b/src/components/chat/AgentHeader.tsx @@ -87,8 +87,8 @@ export const AgentHeader = ({ boxShadow: `0 1px 0 ${alpha("#fff", 0.6)} inset`, }} > - - + + - + {isEditingTitle ? ( - + setDraftTitle(event.target.value)} @@ -226,7 +226,6 @@ export const AgentHeader = ({ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", - maxWidth: { xs: "calc(100vw - 256px)", sm: 284 }, px: "8px", lineHeight: 1.2, }} @@ -262,7 +261,7 @@ export const AgentHeader = ({ - + = ({ open, onClose }) => { const handleMouseMove = (event: MouseEvent) => { if (!isResizing) return; const newWidth = window.innerWidth - event.clientX; - if (newWidth > 360 && newWidth < 1240) { + if (newWidth > 360 && newWidth < 800) { setWidth(newWidth); } };