Pārlūkot izejas kodu

fix(device-selection): show black background only when video muted

On certain modal dimensions, the black background of the video
preview could peek through, making it look like the video has a
black line. The change is to remove the black background from
showing by default and having it only display when the video is
muted. Also, the video preview dimension stylings have been
changed to facilitiate smoother size adjusting with modal size
changes.
master
Leonard Kim 8 gadus atpakaļ
vecāks
revīzija
1045cb56fe

+ 9
- 7
css/modals/device-selection/_device-selection.scss Parādīt failu

41
     }
41
     }
42
 
42
 
43
     .device-selection-video-container {
43
     .device-selection-video-container {
44
-        /* TOFIX: to be removed when we move out from muted preview */
45
-        background: black;
46
         border-radius: 3px;
44
         border-radius: 3px;
47
-        /* TOFIX-END */
48
-        height: 160px;
49
         margin-bottom: 5px;
45
         margin-bottom: 5px;
50
 
46
 
51
         .video-input-preview {
47
         .video-input-preview {
66
                 top: 50%;
62
                 top: 50%;
67
             }
63
             }
68
 
64
 
69
-            &.video-muted .video-input-preview-muted {
70
-                display: block;
65
+            &.video-muted {
66
+                /* TOFIX: to be removed when we move out from muted preview */
67
+                background: black;
68
+                /* TOFIX-END */
69
+
70
+                .video-input-preview-muted {
71
+                    display: block;
72
+                }
71
             }
73
             }
72
 
74
 
73
             .video-input-preview-display {
75
             .video-input-preview-display {
74
-                height: 100%;
76
+                height: auto;
75
                 overflow: hidden;
77
                 overflow: hidden;
76
                 width: 100%;
78
                 width: 100%;
77
             }
79
             }

Notiek ielāde…
Atcelt
Saglabāt