Added mobile chat and some responsiveness

weird 0 popping out when toggling chat. wasn't able to find which
component is responsible. Used bare mininum scss. May refactor in the
future.
This commit is contained in:
t1enne
2022-05-04 09:55:44 +02:00
parent 502cf4478a
commit 2cfb336411
6 changed files with 66 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
import Sider from 'antd/lib/layout/Sider';
import { useRecoilValue } from 'recoil';
import { useEffect } from 'react';
import { ChatMessage } from '../../../interfaces/chat-message.model';
import ChatContainer from '../../chat/ChatContainer';
import s from './Sidebar.module.scss';
import {
chatMessagesAtom,
chatVisibilityAtom,
@@ -18,6 +18,7 @@ export default function Sidebar() {
return (
<Sider
className={`${s.root}`}
collapsed={chatVisibility === ChatVisibilityState.Hidden}
collapsedWidth={0}
width="100%"