Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Jan 21, 2025
1 parent 5c045cf commit d329846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/media-elements/videos/videosComponentElms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ const VideosComponentElms = ({
const [isSmallScreen, setIsSmallScreen] = useState<boolean>(false);

useEffect(() => {
if (isVertical && pinParticipant) {
if (isVertical && isEnabledExtendedVerticalCamView && pinParticipant) {
// for pin cam needs to use one full row
setWebcamPerPage(VERTICAL_PER_PAGE - 2);
setWebcamPerPage(EXTENDED_VERTICAL_PER_PAGE - 2);
}
}, [isVertical, pinParticipant]);
}, [isEnabledExtendedVerticalCamView, isVertical, pinParticipant]);

useEffect(() => {
if (isVertical) {
Expand Down Expand Up @@ -322,7 +322,7 @@ const VideosComponentElms = ({
return null;
}

if (isVertical && pinParticipant) {
if (isVertical && isEnabledExtendedVerticalCamView && pinParticipant) {
// vertical + pinParticipant, so vertical view will lose on row
return (
<div
Expand Down

0 comments on commit d329846

Please sign in to comment.