fix(background-alpha) Fix setting background opacity

This commit is contained in:
Horatiu Muresan 2022-03-29 17:27:32 +03:00 committed by Jaya Allamsetty
parent 8e0ad97860
commit 00cb0a80a1
2 changed files with 8 additions and 8 deletions

View File

@ -108,13 +108,13 @@ UI.start = function() {
$('body').addClass('mobile-browser');
} else {
$('body').addClass('desktop-browser');
}
if (config.backgroundAlpha !== undefined) {
const backgroundColor = $('body').css('background-color');
const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
if (config.backgroundAlpha !== undefined) {
const backgroundColor = $('body').css('background-color');
const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
$('body').css('background-color', alphaColor);
}
$('body').css('background-color', alphaColor);
}
if (config.iAmRecorder) {

View File

@ -229,13 +229,13 @@ class Conference extends AbstractConference<Props, *> {
id = 'layout_wrapper'
onMouseEnter = { this._onMouseEnter }
onMouseLeave = { this._onMouseLeave }
onMouseMove = { this._onMouseMove } >
onMouseMove = { this._onMouseMove }
ref = { this._setBackground }>
<Chat />
<div
className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
id = 'videoconference_page'
onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }
ref = { this._setBackground }>
onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }>
<ConferenceInfo />
<Notice />
<div