Procházet zdrojové kódy

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

Tatsuya Ise před 2 roky
rodič
revize
c20f75d1c0
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;
   }