Sfoglia il codice sorgente

Fix object-fit on some browsers

master
yanas 8 anni fa
parent
commit
fd836560aa
1 ha cambiato i file con 8 aggiunte e 5 eliminazioni
  1. 8
    5
      css/videolayout_default.css

+ 8
- 5
css/videolayout_default.css Vedi File

@@ -41,20 +41,22 @@
41 41
     background-size: contain;
42 42
     border-radius:1px;
43 43
     border: 1px solid #212425;
44
-    /*margin-right: 1px;*/
44
+    /**
45
+      * Some browsers don't have full support of the object-fit property for the
46
+      * video element and when we set video object-fit to "cover" the video
47
+      * actually overflows the boundaries of its container, so it's important
48
+      * to indicate that the "overflow" should be hidden.
49
+      */
50
+    overflow: hidden;
45 51
 }
46 52
 
47
-/*#remoteVideos .videocontainer:hover,*/
48 53
 #remoteVideos .videocontainer.videoContainerFocused {
49 54
     cursor: hand;
50
-    /* transform:scale(1.08, 1.08);
51
-    -webkit-transform:scale(1.08, 1.08); */
52 55
     transition-duration: 0.5s;
53 56
     -webkit-transition-duration: 0.5s;
54 57
     -webkit-animation-name: greyPulse;
55 58
     -webkit-animation-duration: 2s;
56 59
     -webkit-animation-iteration-count: 1;
57
-    overflow: visible !important;
58 60
 }
59 61
 
60 62
 #remoteVideos .videocontainer:hover {
@@ -82,6 +84,7 @@
82 84
     cursor: hand;
83 85
     border-radius:1px;
84 86
     object-fit: cover;
87
+    overflow: hidden;
85 88
 }
86 89
 
87 90
 .flipVideoX {

Loading…
Annulla
Salva