Skip to content

Commit

Permalink
messed css removed and design update for vertical cam extended view
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulkader69 committed Jan 10, 2025
1 parent ff2789c commit c574695
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 29 deletions.
3 changes: 3 additions & 0 deletions src/components/main-area/mainComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ const MainComponents = ({
);
if (showVideoElms && showVerticalVideoView) {
cssClasses.push('verticalsWebcamsActivated');
if (isEnabledExtendedVerticalCamView) {
cssClasses.push('extendedVerticalCamView');
}
}
} else {
if (showVideoElms && !showVerticalVideoView) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/media-elements/videos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const VideosComponent = ({ isVertical }: IVideosComponentProps) => {
isLocal: participant instanceof LocalParticipant,
};

for (let i = 0; i < 14; i++) {
for (let i = 0; i < 100; i++) {
totalNumWebcams++;
const elm = (
<VideoParticipant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const VideosComponentElms = ({
<>
{isVertical ? (
<div
className={`vertical-webcams-wrapper absolute right-0 top-0 bg-white h-full p-3 transition-all duration-300 z-20 ${isEnabledExtendedVerticalCamView ? 'w-[416px] flex flex-col justify-center' : 'w-[212px] not-extended'}`}
className={`vertical-webcams-wrapper absolute right-0 top-0 bg-white h-full p-3 transition-all duration-300 z-20 ${isEnabledExtendedVerticalCamView ? 'w-[416px] flex flex-col justify-center extended-view-wrap' : 'w-[212px] not-extended'}`}
>
{/* If we have two column of camera then we have to add these class (flex flex-col justify-center gap-3) to each column */}
<div
Expand Down
49 changes: 22 additions & 27 deletions src/styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,10 @@ code {
}

.middle-fullscreen-wrapper.verticalsWebcamsActivated {
@apply pr-[212px];
@apply pr-[212px] transition-all duration-300;
}
.middle-fullscreen-wrapper.verticalsWebcamsActivated.extendedVerticalCamView {
@apply pr-[416px];
}

.middle-fullscreen-wrapper {
Expand Down Expand Up @@ -1153,7 +1156,7 @@ html[dir='rtl'] .rtl\:microphone-rtl-left::before {
}
}
.webcam-prev-page {
@apply h-20 p-0;
@apply h-28 p-0;
.bottom-area {
@apply hidden;
}
Expand All @@ -1180,29 +1183,39 @@ html[dir='rtl'] .rtl\:microphone-rtl-left::before {
.video-camera-item {
@apply order-2;
}
}
.vertical-webcams-wrapper.extended-view-wrap {
.webcam-next-page,
.webcam-prev-page {
.bottom-area {
@apply hidden;
}
.middle-area {
@apply w-full px-5 flex;
}
.icon {
svg {
@apply rotate-90;
@apply rotate-0;
}
}
}
.row-count-1.total-cam-1 {
.webcam-prev-page {
.middle-area {
@apply justify-end;
}
}
.group-total-cam-1 {
.camera-row-wrap {
@apply grid-cols-1 h-[260px];
}
}
.row-count-1.total-cam-2 {
.group-total-cam-2 {
@apply h-full max-h-[530px];
.camera-row-wrap {
@apply grid-cols-1;
}
}
.row-count-2.total-cam-3 {
.group-total-cam-3 {
@apply gap-3;
.camera-row-0 {
@apply grid-cols-1 !h-2/3;
Expand All @@ -1211,29 +1224,11 @@ html[dir='rtl'] .rtl\:microphone-rtl-left::before {
@apply grid-cols-1 h-1/3;
}
}
.row-count-2.total-cam-4 {
.group-total-cam-4 {
@apply h-full max-h-80;
}
.row-count-3.total-cam-5,
.row-count-3.total-cam-6,
.row-count-2.total-cam-20.page-3,
.row-count-2.total-cam-21.page-3,
.row-count-2.total-cam-29.page-4,
.row-count-2.total-cam-30.page-4 {
.group-total-cam-5,
.group-total-cam-6 {
@apply h-full max-h-[450px];
}
.row-count-2.total-cam-11.page-2,
.row-count-2.total-cam-12.page-2,
.row-count-3.total-cam-13.page-2,
.row-count-3.total-cam-14.page-2,
.row-count-3.total-cam-22.page-3,
.row-count-3.total-cam-23.page-3,
.row-count-3.total-cam-31.page-4,
.row-count-3.total-cam-32.page-4 {
@apply h-full max-h-[530px];
}
.row-count-1.total-cam-19.page-3,
.row-count-1.total-cam-28.page-4 {
@apply h-full max-h-[260px];
}
}

0 comments on commit c574695

Please sign in to comment.