diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-04-14 17:14:04 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-04-14 17:35:45 +0200 |
commit | 5d96c5ac41f4ae0c43b2cce53cb30b4e76ec5312 (patch) | |
tree | c93fd19990571a62b4ea16285fb34c10a1f1f9ee /app/javascript/flavours/glitch/styles | |
parent | c5dd4ed1d51a1189fa73d78cfec0f97a19a84a90 (diff) |
[Glitch] Responsively enforce 16:9 ratio on video thumbnails in web UI
Port the video-player part of 036dd98abb1fe6ae1d25ff0f3ecffe4dd9a79ea3 to glitch-soc. MediaGallery part ignored since it has diverged quite a bit. This fixes #423
Diffstat (limited to 'app/javascript/flavours/glitch/styles')
-rw-r--r-- | app/javascript/flavours/glitch/styles/components/media.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/media.scss b/app/javascript/flavours/glitch/styles/components/media.scss index 03e7aba67..8bff42538 100644 --- a/app/javascript/flavours/glitch/styles/components/media.scss +++ b/app/javascript/flavours/glitch/styles/components/media.scss @@ -307,7 +307,7 @@ &.inline { video { - object-fit: cover; + object-fit: contain; position: relative; top: 50%; transform: translateY(-50%); |