File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 height : 100% ;
33 padding-top : 10vh ;
44 overflow-y : auto;
5+ max-width : none;
6+ align-content : flex-start;
7+ flex-wrap : wrap;
8+ justify-content : center;
59}
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { LoginResponse } from '../models/LoginResponse';
66import DividedList from '../components/DividedList' ;
77import { Room } from '../models/Room' ;
88import axios from 'axios' ;
9+ import { Box } from '@mui/material' ;
910
1011const Chat : React . FC = ( ) => {
1112 const [ messageContent , setMessageContent ] = useState ( '' ) ;
@@ -79,7 +80,8 @@ const Chat: React.FC = () => {
7980 } , [ room . messages ] ) ; // Scroll whenever messages change
8081
8182 return (
82- < div className = "chat-container" >
83+ < Box sx = { { maxWidth : 800 , mx : 'auto' , p : 3 } } >
84+ < div className = "chat-container" >
8385 < div className = "message-input" >
8486 < input
8587 type = "text"
@@ -114,7 +116,8 @@ const Chat: React.FC = () => {
114116 < h3 > Online Users:</ h3 >
115117 < DividedList onlineUsers = { onlineUsers } onUserClick = { onUserClick } />
116118 </ div >
117- </ div >
119+ </ div >
120+ </ Box >
118121 ) ;
119122} ;
120123
You can’t perform that action at this time.
0 commit comments