@@ -261,7 +261,7 @@ export default function Room({ auth }) {
261261 top : 20 ,
262262 right : 0 ,
263263 bottom : 20 ,
264- width : showUserList ? 240 : 20 ,
264+ width : showUserList ? 150 : 20 ,
265265 transition : 'width 0.3s ease' ,
266266 pointerEvents : 'none' ,
267267 } }
@@ -276,8 +276,8 @@ export default function Room({ auth }) {
276276 left : 0 ,
277277 top : '50%' ,
278278 transform : 'translateY(-50%)' ,
279- width : 20 ,
280- height : 60 ,
279+ width : 16 ,
280+ height : 50 ,
281281 display : 'flex' ,
282282 alignItems : 'center' ,
283283 justifyContent : 'center' ,
@@ -305,7 +305,7 @@ export default function Room({ auth }) {
305305 height : '100%' ,
306306 display : 'flex' ,
307307 flexDirection : 'column' ,
308- borderRadius : '20px 0 0 20px ' ,
308+ borderRadius : '12px 0 0 12px ' ,
309309 overflow : 'hidden' ,
310310 background : '#25D8C5' ,
311311 pointerEvents : 'all' ,
@@ -314,7 +314,7 @@ export default function Room({ auth }) {
314314 { /* Fixed Header */ }
315315 < Box
316316 sx = { {
317- height : 70 ,
317+ height : 42 ,
318318 backgroundImage : `
319319 linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
320320 url('/toolbar/toolbar-bg.jpeg')
@@ -327,6 +327,7 @@ export default function Room({ auth }) {
327327 justifyContent : 'center' ,
328328 color : 'white' ,
329329 fontWeight : 'bold' ,
330+ fontSize : '0.9rem' ,
330331 fontFamily : 'Comic Sans MS, cursive' ,
331332 flexShrink : 0 ,
332333 } }
@@ -340,22 +341,29 @@ export default function Room({ auth }) {
340341 flexGrow : 1 ,
341342 overflowY : 'auto' ,
342343 backdropFilter : 'blur(4px)' ,
343- padding : 1 ,
344+ padding : 0.5 ,
344345 } }
345346 >
346- < List dense >
347+ < List dense sx = { { py : 0 } } >
347348 { userList && userList . map ( ( group , index ) => {
348349 // group is expected to be { periodStart, users: [...] }
349350 if ( group && group . periodStart !== undefined ) {
350351 const label = formatDateMs ( group . periodStart ) ;
351352 const expanded = expandedGroups . includes ( group . periodStart ) ;
352353 return (
353354 < div key = { group . periodStart } >
354- < ListItem disablePadding >
355- < ListItemButton onClick = { ( ) => toggleGroup ( group . periodStart ) } >
355+ < ListItem disablePadding sx = { { py : 0 } } >
356+ < ListItemButton
357+ onClick = { ( ) => toggleGroup ( group . periodStart ) }
358+ sx = { { py : 0.5 , minHeight : 32 } }
359+ >
356360 < ListItemText
357361 primary = { label }
358- primaryTypographyProps = { { color : '#17635a' , fontWeight : 'bold' } }
362+ primaryTypographyProps = { {
363+ color : '#17635a' ,
364+ fontWeight : 'bold' ,
365+ fontSize : '0.8rem'
366+ } }
359367 />
360368 </ ListItemButton >
361369 </ ListItem >
@@ -366,11 +374,13 @@ export default function Room({ auth }) {
366374 ( typeof selectedUser === 'object' && selectedUser . user === user && selectedUser . periodStart === group . periodStart )
367375 ) ;
368376 return (
369- < ListItem key = { `${ group . periodStart } -${ uidx } ` } disablePadding sx = { { pl : 2 } } >
377+ < ListItem key = { `${ group . periodStart } -${ uidx } ` } disablePadding sx = { { pl : 1 , py : 0 } } >
370378 < ListItemButton
371379 onClick = { ( ) => setSelectedUser ( isSelected ? "" : { user : user , periodStart : group . periodStart } ) }
372380 selected = { Boolean ( isSelected ) }
373381 sx = { {
382+ py : 0.5 ,
383+ minHeight : 32 ,
374384 borderRadius : 1 ,
375385 '&.Mui-selected' : {
376386 backgroundColor : theme . palette . action . hover ,
@@ -380,12 +390,12 @@ export default function Room({ auth }) {
380390 }
381391 } }
382392 >
383- < Avatar sx = { { bgcolor : theme . palette . primary . light , mr : 2 } } >
393+ < Avatar sx = { { bgcolor : theme . palette . primary . light , mr : 1 , width : 28 , height : 28 , fontSize : '0.9rem' } } >
384394 { username . charAt ( 0 ) . toUpperCase ( ) }
385395 </ Avatar >
386396 < ListItemText
387397 primary = { username }
388- primaryTypographyProps = { { color : '#17635a' } }
398+ primaryTypographyProps = { { color : '#17635a' , fontSize : '0.8rem' } }
389399 />
390400 </ ListItemButton >
391401 </ ListItem >
@@ -398,11 +408,13 @@ export default function Room({ auth }) {
398408 const username = ( user || '' ) . split ( "|" ) [ 0 ] ;
399409 const isSelected = selectedUser === user ;
400410 return (
401- < ListItem key = { index } disablePadding >
411+ < ListItem key = { index } disablePadding sx = { { py : 0 } } >
402412 < ListItemButton
403413 onClick = { ( ) => setSelectedUser ( isSelected ? "" : user ) }
404414 selected = { Boolean ( isSelected ) }
405415 sx = { {
416+ py : 0.5 ,
417+ minHeight : 32 ,
406418 borderRadius : 1 ,
407419 '&.Mui-selected' : {
408420 backgroundColor : theme . palette . action . hover ,
@@ -412,12 +424,12 @@ export default function Room({ auth }) {
412424 }
413425 } }
414426 >
415- < Avatar sx = { { bgcolor : theme . palette . primary . light , mr : 2 } } >
427+ < Avatar sx = { { bgcolor : theme . palette . primary . light , mr : 1 , width : 28 , height : 28 , fontSize : '0.9rem' } } >
416428 { username . charAt ( 0 ) . toUpperCase ( ) }
417429 </ Avatar >
418430 < ListItemText
419431 primary = { username }
420- primaryTypographyProps = { { color : '#17635a' } }
432+ primaryTypographyProps = { { color : '#17635a' , fontSize : '0.8rem' } }
421433 />
422434 </ ListItemButton >
423435 </ ListItem >
0 commit comments