Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(video-quality-label): adjust z-indexing clashes with filmstrip

Leonard Kim995a25ee1581
diff --git a/css/_filmstrip.scss b/css/_filmstrip.scss
index ad6851907f..96f4abb170 100644
--- a/css/_filmstrip.scss
+++ b/css/_filmstrip.scss
@@ -157,8 +157,10 @@
.remote-videos-container {
transition: opacity 1s;
+ }
- &.hide-videos {
+ &.hide-videos {
+ .remote-videos-container {
opacity: 0;
pointer-events: none;
}
diff --git a/css/_variables.scss b/css/_variables.scss
index 479ab9b304..d94762c9a5 100644
--- a/css/_variables.scss
+++ b/css/_variables.scss
@@ -107,7 +107,7 @@ $reloadZ: 20;
$poweredByZ: 100;
$ringingZ: 300;
$sideToolbarContainerZ: 300;
-$toolbarZ: 400;
+$toolbarZ: 350;
$tooltipsZ: 401;
$dropdownMaskZ: 900;
$dropdownZ: 901;
diff --git a/css/_vertical_filmstrip_overrides.scss b/css/_vertical_filmstrip_overrides.scss
index 08aad336da..b3b654b18c 100644
--- a/css/_vertical_filmstrip_overrides.scss
+++ b/css/_vertical_filmstrip_overrides.scss
@@ -15,7 +15,18 @@
* any parent is also fixed.
*/
position: fixed;
- z-index: $tooltipsZ;
+
+ /**
+ * z-index adjusting is needed because the video state indicator has to
+ * display over the filmstrip when no videos are displayed but still be
+ * clickable but its inline dialogs must display over the video state
+ * indicator when videos are displayed.
+ */
+ z-index: calc(#{$tooltipsZ} + 1);
+
+ &.hide-videos {
+ z-index: calc(#{$tooltipsZ} - 1);
+ }
/**
* Hide videos by making them slight to the right.
@@ -28,6 +39,15 @@
bottom: auto;
right: -196px;
}
+
+ /**
+ * Remove horizontal filmstrip padding used to prevent videos from
+ * overlapping the left-side toolbar. An id selector is used to
+ * match id specificity with filmstrip styles.
+ */
+ &#remoteVideos {
+ padding-left: 0;
+ }
}
#filmstripLocalVideo {
diff --git a/modules/UI/videolayout/Filmstrip.js b/modules/UI/videolayout/Filmstrip.js
index d0b8d023b3..0ff8345e23 100644
--- a/modules/UI/videolayout/Filmstrip.js
+++ b/modules/UI/videolayout/Filmstrip.js
@@ -46,7 +46,8 @@ const Filmstrip = {
}
APP.store.dispatch(setFilmstripRemoteVideosVisibility(shouldShow));
- this.filmstripRemoteVideos.toggleClass('hide-videos', !shouldShow);
+ $(`.${this.filmstripContainerClassName}`)
+ .toggleClass('hide-videos', !shouldShow);
},
/**