From: Yuto Tokunaga Date: Tue, 27 Mar 2018 10:30:28 +0000 (+0900) Subject: fix #6846 (#6914) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=31e7b7308489ecc8b43f83b78ec0a288c4195d5b;p=mastodon.git fix #6846 (#6914) --- 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; }