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' && 设置} +