diff --git a/src/components/ParticipantList/ParticipantList.tsx b/src/components/ParticipantList/ParticipantList.tsx index 6d60057e7..0ec21737f 100644 --- a/src/components/ParticipantList/ParticipantList.tsx +++ b/src/components/ParticipantList/ParticipantList.tsx @@ -11,7 +11,6 @@ import useScreenShareParticipant from '../../hooks/useScreenShareParticipant/use const useStyles = makeStyles((theme: Theme) => createStyles({ container: { - padding: '2em', overflowY: 'auto', background: 'rgb(79, 83, 85)', gridArea: '1 / 2 / 1 / 3', @@ -21,14 +20,21 @@ const useStyles = makeStyles((theme: Theme) => overflowY: 'initial', overflowX: 'auto', display: 'flex', - padding: `${theme.sidebarMobilePadding}px`, }, }, transparentBackground: { background: 'transparent', }, scrollContainer: { + display: 'flex', + justifyContent: 'center', + }, + innerScrollContainer: { + width: `calc(${theme.sidebarWidth}px - 4em)`, + padding: '2em 0', [theme.breakpoints.down('sm')]: { + width: 'auto', + padding: `${theme.sidebarMobilePadding}px`, display: 'flex', }, }, @@ -55,21 +61,23 @@ export default function ParticipantList() { })} >