Преглед на файлове

fix(large-video): make blurred background fit whole screen

master
Leonard Kim преди 6 години
родител
ревизия
df50e7fa69
променени са 2 файла, в които са добавени 4 реда и са изтрити 24 реда
  1. 3
    8
      css/_videolayout_default.scss
  2. 1
    16
      react/features/large-video/components/LargeVideoBackground.web.js

+ 3
- 8
css/_videolayout_default.scss Целия файл

@@ -23,14 +23,9 @@
23 23
     top: 0;
24 24
     width: 100%;
25 25
 
26
-    &.fit-full-height #largeVideoBackground {
27
-        height: 100%;
28
-        width: auto;
29
-    }
30
-
31
-    .fit-full-width #largeVideoBackground {
32
-        height: auto;
33
-        width: 100%;
26
+    #largeVideoBackground {
27
+        min-height: 100%;
28
+        min-width: 100%;
34 29
     }
35 30
 }
36 31
 #largeVideoBackgroundContainer {

+ 1
- 16
react/features/large-video/components/LargeVideoBackground.web.js Целия файл

@@ -15,18 +15,6 @@ export const ORIENTATION = {
15 15
     PORTRAIT: 'portrait'
16 16
 };
17 17
 
18
-/**
19
- * A mapping of orientations to a class that should fit the
20
- * {@code LargeVideoBackground} into its container.
21
- *
22
- * @private
23
- * @type {Object}
24
- */
25
-const ORIENTATION_TO_CLASS = {
26
-    [ORIENTATION.LANDSCAPE]: 'fit-full-width',
27
-    [ORIENTATION.PORTRAIT]: 'fit-full-height'
28
-};
29
-
30 18
 /**
31 19
  * The type of the React {@code Component} props of
32 20
  * {@link LargeVideoBackgroundCanvas}.
@@ -150,14 +138,11 @@ export class LargeVideoBackground extends Component<Props> {
150 138
         const {
151 139
             hidden,
152 140
             mirror,
153
-            orientationFit,
154 141
             showLocalProblemFilter,
155 142
             showRemoteProblemFilter
156 143
         } = this.props;
157
-        const orientationClass = orientationFit
158
-            ? ORIENTATION_TO_CLASS[orientationFit] : '';
159 144
         const classNames = `large-video-background ${mirror ? 'flip-x' : ''} ${
160
-            hidden ? 'invisible' : ''} ${orientationClass} ${
145
+            hidden ? 'invisible' : ''} ${
161 146
             showLocalProblemFilter ? 'videoProblemFilter' : ''} ${
162 147
             showRemoteProblemFilter ? 'remoteVideoProblemFilter' : ''}`;
163 148
 

Loading…
Отказ
Запис