Просмотр исходного кода

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

Tatsuya Ise 1 год назад
Родитель
Сommit
c20f75d1c0
1 измененных файлов с 2 добавлено и 1 удалено
  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;
   }