From 0247eaeda9775804c0d5fe2adac26af69ce3dd19 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 30 Nov 2025 00:30:10 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E5=AF=B9=E8=AF=9D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=20Tab=20=E6=A0=8F=E9=A1=B9=E7=9B=AE=E8=BF=87=E5=A4=9A?= =?UTF-8?q?=E6=97=B6=E5=8F=AF=E4=BB=A5=E5=B7=A6=E5=8F=B3=E6=BB=91=E5=8A=A8?= =?UTF-8?q?,=20=E5=B9=B6=E4=BF=9D=E6=8C=81=E5=8E=9F=E6=9C=89=E7=9A=84?= =?UTF-8?q?=E5=BD=A2=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index 06d1f31..89d2c23 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -95,6 +95,18 @@ const markedInstance = new marked.Marked({ } }) +interface MduiTabFitSizeArgs extends React.HTMLAttributes { + value: string +} +function MduiTabFitSize({ children, ...props }: MduiTabFitSizeArgs) { + return + {children} + +} + export default function ChatFragment({ target, showReturnButton, onReturnButtonClicked, openChatInfoDialog, openUserInfoDialog, ...props }: Args) { const [messagesList, setMessagesList] = React.useState([] as Message[]) const [chatInfo, setChatInfo] = React.useState({ @@ -114,6 +126,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC React.useEffect(() => { $(containerTabRef.current!.shadowRoot).append(``) $(tabRef.current!.shadowRoot).append(``) + ; (!isMobileUI()) && $(tabRef.current!.shadowRoot).append(``) }, [target]) async function getChatInfoAndInit() { @@ -347,17 +360,18 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC display: "flex", flexDirection: "column", height: "100%", + overflowX: 'auto', }}> { chatInfo.is_member ? <> - {chatInfo.title} - {chatInfo.type == 'group' && chatInfo.is_admin && 加入请求} - {chatInfo.type == 'group' && 群组成员} + {chatInfo.title} + {chatInfo.type == 'group' && chatInfo.is_admin && 加入请求} + {chatInfo.type == 'group' && 群组成员} - : {chatInfo.title} + : {chatInfo.title} } - {chatInfo.type == 'group' && 设置} - + {chatInfo.type == 'group' && 设置} +