]> cat aescling's git repositories - mastodon.git/commitdiff
fix #6846 (#6914)
authorYuto Tokunaga <yuntan.sub1@gmail.com>
Tue, 27 Mar 2018 10:30:28 +0000 (19:30 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 27 Mar 2018 10:30:28 +0000 (12:30 +0200)
app/javascript/styles/mastodon/components.scss

index 1fb1fa851fa44b78ee2ac50192a9fb7a0a3215d9..2b13b80a74620cb7b5da559931cd9de5e81149cd 100644 (file)
@@ -3436,6 +3436,19 @@ a.status-card {
   width: 100%;
   height: 100%;
   position: relative;
+
+  .extended-video-player {
+    width: 100%;
+    height: 100%;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+
+    video {
+      max-width: $media-modal-media-max-width;
+      max-height: $media-modal-media-max-height;
+    }
+  }
 }
 
 .media-modal__closer {
@@ -4411,8 +4424,8 @@ a.status-card {
   border-radius: 4px;
 
   video {
-    height: 100%;
-    width: 100%;
+    max-width: 100vw;
+    max-height: 80vh;
     z-index: 1;
   }