style: fix height problem in mobile

pull/13/head
moonrailgun 4 years ago
parent 8f74516e1a
commit 584f064184

@ -49,7 +49,7 @@ export const App: React.FC = React.memo(() => {
return ( return (
<div <div
id="tailchat-app" id="tailchat-app"
className={clsx('h-screen w-screen min-h-screen select-none', { className={clsx('absolute inset-0 select-none', {
dark: darkMode, dark: darkMode,
})} })}
> >

@ -50,7 +50,7 @@ export const ChatBox: React.FC<ChatBoxProps> = React.memo((props) => {
} }
return ( return (
<div className="w-full h-screen flex flex-col select-text"> <div className="w-full h-full flex flex-col select-text">
<ChatMessageList messages={messages} /> <ChatMessageList messages={messages} />
<ChatInputBox <ChatInputBox

@ -68,7 +68,7 @@ export const MainProvider: React.FC = React.memo((props) => {
if (loading) { if (loading) {
return ( return (
<div className="w-screen h-screen flex items-center justify-center bg-gray-700 text-white text-xl"> <div className="fixed inset-0 flex items-center justify-center bg-gray-700 text-white text-xl">
<LoadingSpinner tip="正在连接到聊天服务器..." /> <LoadingSpinner tip="正在连接到聊天服务器..." />
</div> </div>
); );

Loading…
Cancel
Save