From 744f02677d8df64c298206663604b5038c9063e6 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 23 Nov 2025 11:15:08 +0800 Subject: [PATCH] =?UTF-8?q?Tab=20=E6=A0=8F=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B9=8B=E7=A7=BB=E9=99=A4=20::after?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index a9632de..6ef9971 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -110,6 +110,12 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC tabRef.current != null && setTabItemSelected(tabRef.current!.value as string) }) + const containerTabRef = React.useRef(null) + React.useEffect(() => { + $(containerTabRef.current!.shadowRoot).append(``) + $(tabRef.current!.shadowRoot).append(``) + }, [target]) + async function getChatInfoAndInit() { setMessagesList([]) page.current = 0 @@ -323,7 +329,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC flexDirection: 'column', overflowY: 'auto', }} {...props}> -