Skip to content

Commit

Permalink
fix: maintain aspect-ratio, re-enable visibility tracking (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz authored Oct 10, 2023
1 parent fd96007 commit 0c8319e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
.participant.vertical {
width: 100%;
border-radius: 12px;
aspect-ratio: auto;
}

.participant.vertical video {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export const ParticipantsSlider: FC<Props> = ({
);

useEffect(() => {
if (!scrollWrapper || !call || mode === 'vertical') return;
if (!scrollWrapper || !call) return;
const cleanup = call.setViewport(scrollWrapper);
return () => cleanup();
}, [scrollWrapper, call, mode]);
}, [scrollWrapper, call]);

useEffect(() => {
if (breakpoint === 'xs' || breakpoint === 'sm') {
Expand Down

0 comments on commit 0c8319e

Please sign in to comment.