Sfoglia il codice sorgente

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 anni fa
parent
commit
1045cb56fe
1 ha cambiato i file con 9 aggiunte e 7 eliminazioni
  1. 9
    7
      css/modals/device-selection/_device-selection.scss

+ 9
- 7
css/modals/device-selection/_device-selection.scss Vedi File

@@ -41,11 +41,7 @@
41 41
     }
42 42
 
43 43
     .device-selection-video-container {
44
-        /* TOFIX: to be removed when we move out from muted preview */
45
-        background: black;
46 44
         border-radius: 3px;
47
-        /* TOFIX-END */
48
-        height: 160px;
49 45
         margin-bottom: 5px;
50 46
 
51 47
         .video-input-preview {
@@ -66,12 +62,18 @@
66 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 75
             .video-input-preview-display {
74
-                height: 100%;
76
+                height: auto;
75 77
                 overflow: hidden;
76 78
                 width: 100%;
77 79
             }

Loading…
Annulla
Salva