浏览代码

fix(background-alpha) Fix setting background opacity

master
Horatiu Muresan 3 年前
父节点
当前提交
00d68f08ab
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 5
    5
      modules/UI/UI.js
  2. 3
    3
      react/features/conference/components/web/Conference.js

+ 5
- 5
modules/UI/UI.js 查看文件

108
         $('body').addClass('mobile-browser');
108
         $('body').addClass('mobile-browser');
109
     } else {
109
     } else {
110
         $('body').addClass('desktop-browser');
110
         $('body').addClass('desktop-browser');
111
+    }
111
 
112
 
112
-        if (config.backgroundAlpha !== undefined) {
113
-            const backgroundColor = $('body').css('background-color');
114
-            const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
113
+    if (config.backgroundAlpha !== undefined) {
114
+        const backgroundColor = $('body').css('background-color');
115
+        const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
115
 
116
 
116
-            $('body').css('background-color', alphaColor);
117
-        }
117
+        $('body').css('background-color', alphaColor);
118
     }
118
     }
119
 
119
 
120
     if (config.iAmRecorder) {
120
     if (config.iAmRecorder) {

+ 3
- 3
react/features/conference/components/web/Conference.js 查看文件

229
                 id = 'layout_wrapper'
229
                 id = 'layout_wrapper'
230
                 onMouseEnter = { this._onMouseEnter }
230
                 onMouseEnter = { this._onMouseEnter }
231
                 onMouseLeave = { this._onMouseLeave }
231
                 onMouseLeave = { this._onMouseLeave }
232
-                onMouseMove = { this._onMouseMove } >
232
+                onMouseMove = { this._onMouseMove }
233
+                ref = { this._setBackground }>
233
                 <Chat />
234
                 <Chat />
234
                 <div
235
                 <div
235
                     className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
236
                     className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
236
                     id = 'videoconference_page'
237
                     id = 'videoconference_page'
237
-                    onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }
238
-                    ref = { this._setBackground }>
238
+                    onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }>
239
                     <ConferenceInfo />
239
                     <ConferenceInfo />
240
                     <Notice />
240
                     <Notice />
241
                     <div
241
                     <div

正在加载...
取消
保存