about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorYuto Tokunaga <yuntan.sub1@gmail.com>2018-03-27 19:30:28 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-27 12:30:28 +0200
commit31e7b7308489ecc8b43f83b78ec0a288c4195d5b (patch)
tree709c7a5c4a79b10e4c5e40db510bdefa872d9f47 /app/javascript/styles
parenta1d091558555c8a58f7f63c4a9c3002421ea9041 (diff)
fix #6846 (#6914)
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/mastodon/components.scss17
1 files changed, 15 insertions, 2 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 1fb1fa851..2b13b80a7 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -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;
   }