feat: import peer video layout

This commit is contained in:
Jeremy Kahn 2022-11-07 21:19:11 -06:00
parent b27a54eac4
commit f6314501a2

View File

@ -54,15 +54,19 @@ export const PeerVideo = ({
playsInline playsInline
ref={videoRef} ref={videoRef}
style={{ style={{
borderRadius: '1.25em', borderRadius: '.25em',
overflow: 'auto', overflow: 'auto',
padding: '1em', marginLeft: 'auto',
marginRight: 'auto',
height: '100%',
...(isSelf && { ...(isSelf && {
transform: 'rotateY(180deg)', transform: 'rotateY(180deg)',
}), }),
}} }}
/> />
<PeerNameDisplay sx={{ textAlign: 'center', display: 'block' }}> <PeerNameDisplay
sx={{ textAlign: 'center', display: 'block', marginTop: '1em' }}
>
{userId} {userId}
</PeerNameDisplay> </PeerNameDisplay>
</Paper> </Paper>