Added styling

co-authored-by: nthouliss <nthouliss@gmail.com>
This commit is contained in:
Mitchell McCaffrey
2020-03-19 17:33:57 +11:00
parent 62f08c7630
commit 05cf20fe8b
8 changed files with 124 additions and 38 deletions

View File

@@ -6,9 +6,13 @@ import PartyVideo from "./PartyVideo";
function Party({ streams, localStreamId }) {
return (
<Flex p={4} bg="highlight" sx={{ flexDirection: "column", width: "200px" }}>
<Flex
p={3}
bg="background"
sx={{ flexDirection: "column", width: "192px", minWidth: "192px" }}
>
{Object.entries(streams).map(([id, stream]) => (
<PartyVideo key={id} stream={stream} muted={id === localStreamId}/>
<PartyVideo key={id} stream={stream} muted={id === localStreamId} />
))}
</Flex>
);