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(quality-slider): prevent resizing by making p2p warning hidden (#1890)

virtuacoplenny3e3577766d80
diff --git a/css/modals/video-quality/_video-quality.scss b/css/modals/video-quality/_video-quality.scss
index 3ea9a1fc95..87fd0cd1e7 100644
--- a/css/modals/video-quality/_video-quality.scss
+++ b/css/modals/video-quality/_video-quality.scss
@@ -1,6 +1,11 @@
.video-quality-dialog {
color: $modalTextColor;
+ .hide-warning {
+ height: 0;
+ visibility: hidden;
+ }
+
.video-quality-dialog-title {
margin-bottom: 10px;
}
diff --git a/react/features/video-quality/components/VideoQualityDialog.web.js b/react/features/video-quality/components/VideoQualityDialog.web.js
index 4643447ef6..25e2ff7ec8 100644
--- a/react/features/video-quality/components/VideoQualityDialog.web.js
+++ b/react/features/video-quality/components/VideoQualityDialog.web.js
@@ -115,13 +115,16 @@ class VideoQualityDialog extends Component {
render() {
const { _audioOnly, _p2p, t } = this.props;
const activeSliderOption = this._mapCurrentQualityToSliderValue();
+ const showP2PWarning = _p2p && !_audioOnly;
return (
<div className = 'video-quality-dialog'>
<h3 className = 'video-quality-dialog-title'>
{ t('videoStatus.callQuality') }
</h3>
- { !_audioOnly && _p2p ? this._renderP2PMessage() : null }
+ <div className = { showP2PWarning ? '' : 'hide-warning' }>
+ { this._renderP2PMessage() }
+ </div>
<div className = 'video-quality-dialog-contents'>
<div className = 'video-quality-dialog-slider-container'>
{ /* FIXME: onChange and onMouseUp are both used for