Skip to content

Commit

Permalink
fix: participant slot size for calls with up to 4 or 5 participants (#48
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rcmuniz1994 authored Oct 29, 2023
1 parent 265e14c commit f12aa58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/basic/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const Video = forwardRef<HTMLVideoElement | null, VideoProps>(
...sx,
height: {
xs: "120px",
md: "350px",
md: "230px",
xl: "315px",
},
objectFit: "scale-down",
}}
Expand Down
11 changes: 9 additions & 2 deletions src/features/p2p-call/P2PCallMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ export default function P2PCallMain() {

const getSlotStyles = useCallback((): BoxProps["sx"] => {
return {
flexBasis: "35%",
margin: 1,
flexBasis: "30%",
margin: {
xs: 0,
md: 1,
},
width: "100%",
};
}, []);
Expand Down Expand Up @@ -125,6 +128,10 @@ export default function P2PCallMain() {
xs: "grid",
md: "flex",
},
flexWrap: {
xs: "unset",
md: "wrap",
},
gridTemplateColumns: landscape ? "repeat(5, auto)" : "auto auto",
gap: 1,
alignItems: "center",
Expand Down

1 comment on commit f12aa58

@Mazuh
Copy link
Member

@Mazuh Mazuh commented on f12aa58 Oct 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to #31

Please sign in to comment.