Parcourir la source

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

Tatsuya Ise il y a 2 ans
Parent
commit
c20f75d1c0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      apps/app/src/styles/organisms/_wiki.scss

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

@@ -105,7 +105,8 @@
     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%;
     margin: 5px 0;
   }