2
0
Эх сурвалжийг харах

refs #141984: Fix video width to match img tag display

Tatsuya Ise 1 жил өмнө
parent
commit
c20f75d1c0

+ 2 - 1
apps/app/src/styles/organisms/_wiki.scss

@@ -105,7 +105,8 @@
     border-left: 0.3rem solid #ddd;
     border-left: 0.3rem solid #ddd;
   }
   }
 
 
-  img {
+  /** <img> tag has a max-width by default, but user can also add the <video> tag to a custom whitelist. */
+  img,video {
     max-width: 100%;
     max-width: 100%;
     margin: 5px 0;
     margin: 5px 0;
   }
   }