@@ -284,9 +284,9 @@ const CollaborationSpace = () => {
284284
285285 return (
286286
287- < div style = { { textAlign : 'center' , height : '100vh' , overflow : 'hidden' } } >
287+ < div style = { { height : '100vh' , overflow : 'hidden' } } >
288288 { showAccessDeniedToast ? (
289- < ToastContainer className = "p-3" position = "top-center" style = { { zIndex : 1 } } >
289+ < ToastContainer className = "p-3" position = "top-center" style = { { zIndex : 1 , textAlign : 'center' } } >
290290 < Toast
291291 onClose = { handleCloseToast }
292292 show = { showAccessDeniedToast }
@@ -311,19 +311,22 @@ const CollaborationSpace = () => {
311311 </ Toast >
312312 ) ) }
313313 </ ToastContainer >
314- < CollabNavigationBar handleExit = { handleExit } handleCodeRun = { handleCodeRun } users = { users } setLanguage = { setLanguage } language = { language } />
315- < Container fluid style = { { marginTop : '20px ' , height : 'calc(100vh - 60px)' , display : 'flex' , overflow : 'hidden' } } >
314+ < CollabNavigationBar handleExit = { handleExit } handleCodeRun = { handleCodeRun } users = { users } setLanguage = { setLanguage } language = { language } userLangChange = { handleLanguageChange } />
315+ < Container fluid style = { { marginTop : '10px ' , height : 'calc(100vh - 60px)' , display : 'flex' , overflow : 'hidden' } } >
316316 < Row style = { { flexGrow : 1 , width : '100%' , height : '100%' , overflow : 'hidden' } } >
317- < Col md = { 6 } style = { { display : 'flex' , flexDirection : 'column' , height : '100%' , overflow : 'hidden' } } >
318- < CodeSpace handleEditorChange = { handleEditorChange } loading = { outputLoading } code = { code } language = { language } output = { output } />
317+ < Col md = { 6 } style = { { display : 'flex' , flexDirection : 'column' , height : '100%' , overflow : 'hidden' , marginTop : '5px' } } >
318+ < CodeSpace handleEditorChange = { handleEditorChange } loading = { outputLoading } code = { code } language = { language } output = { output } isError = { isError } />
319319 </ Col >
320320 < Col md = { 6 } style = { { display : 'flex' , flexDirection : 'column' , height : '100%' , overflow : 'hidden' } } >
321- < div style = { { flex : '60%' , display : 'flex' , overflow : 'hidden' } } >
322- < QuestionDisplay question = { question } />
321+ < div style = { { flex : 2 , display : 'flex' , overflow : 'hidden' , width : '100%' , minHeight : '0vh' , marginTop : '5px' } } >
322+ < QuestionDisplay question = { question } style = { { width : '100%' } } />
323323 </ div >
324- < div style = { { flex : '40%' , overflow : 'hidden' } } >
325- < Chat currentUser = { username } messages = { messages } sendMessage = { sendMessage } />
324+
325+ < div style = { { flex : 2 , height :'100%' , marginBottom : '38px' , maxHeight :'50vh' } } >
326+ < Chat currentUser = { userId } messages = { messages } sendMessage = { sendMessage } />
327+
326328 </ div >
329+
327330 </ Col >
328331 </ Row >
329332 </ Container >
0 commit comments