From 133f5d417fcc27648491439d2edaf2f38e0ba17e Mon Sep 17 00:00:00 2001 From: Huarch Date: Fri, 8 May 2026 17:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=81=8A=E5=A4=A9=E6=A1=86?= =?UTF-8?q?=E4=B8=BA=E4=B8=B4=E6=97=B6=E6=A8=A1=E5=BC=8F=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=BB=9A=E5=8A=A8=E5=92=8C=E8=BF=87=E6=B8=A1=E6=95=88?= =?UTF-8?q?=E6=9E=9C=EF=BC=8C=E9=81=BF=E5=85=8D=E5=87=BA=E7=8E=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=A8=AA=E5=90=91=E6=8B=89=E4=BC=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/globals.css | 1 + src/components/chat/GlobalChatbox.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 2fea8fa..b626488 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -6,4 +6,5 @@ body { height: 100%; margin: 0; padding: 0; + overflow-x: hidden; } diff --git a/src/components/chat/GlobalChatbox.tsx b/src/components/chat/GlobalChatbox.tsx index b636dff..21b87ae 100644 --- a/src/components/chat/GlobalChatbox.tsx +++ b/src/components/chat/GlobalChatbox.tsx @@ -155,19 +155,21 @@ export const GlobalChatbox: React.FC = ({ open, onClose }) => { return ( muiTheme.zIndex.modal + 100 }} PaperProps={{ sx: { width: { xs: "100%", sm: width }, background: "transparent", boxShadow: "none", - overflow: "visible", + overflow: open ? "visible" : "hidden", zIndex: (muiTheme) => muiTheme.zIndex.modal + 100, - transition: isResizing ? "none" : "width 0.2s cubic-bezier(0, 0, 0.2, 1)", + transition: isResizing ? "none" : undefined, }, }} >