@@ -284,9 +284,9 @@ const CollaborationSpace = () => {
284
284
285
285
return (
286
286
287
- < div style = { { textAlign : 'center' , height : '100vh' , overflow : 'hidden' } } >
287
+ < div style = { { height : '100vh' , overflow : 'hidden' } } >
288
288
{ 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' } } >
290
290
< Toast
291
291
onClose = { handleCloseToast }
292
292
show = { showAccessDeniedToast }
@@ -311,19 +311,22 @@ const CollaborationSpace = () => {
311
311
</ Toast >
312
312
) ) }
313
313
</ 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' } } >
316
316
< 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 } />
319
319
</ Col >
320
320
< 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%' } } />
323
323
</ 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
+
326
328
</ div >
329
+
327
330
</ Col >
328
331
</ Row >
329
332
</ Container >
0 commit comments