fix: prevent peer list from obscuring room

This commit is contained in:
Jeremy Kahn 2022-11-25 10:40:13 -06:00
parent 3c647d0312
commit 37250fddf5

View File

@ -36,10 +36,15 @@ export const PeerList = ({
<MuiDrawer <MuiDrawer
sx={{ sx={{
flexShrink: 0, flexShrink: 0,
pointerEvents: 'none',
width: peerListWidth,
'& .MuiDrawer-paper': { '& .MuiDrawer-paper': {
width: peerListWidth, width: peerListWidth,
boxSizing: 'border-box', boxSizing: 'border-box',
}, },
...(isPeerListOpen && {
pointerEvents: 'auto',
}),
}} }}
variant="persistent" variant="persistent"
anchor="right" anchor="right"