]> cat aescling's git repositories - mastodon.git/commit
Responsively enforce 16:9 ratio on all media thumbnails in web UI (#6590)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 2 Mar 2018 06:00:04 +0000 (07:00 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Mar 2018 06:00:04 +0000 (07:00 +0100)
commit036dd98abb1fe6ae1d25ff0f3ecffe4dd9a79ea3
tree25e9ab71d4f3af615b4806c6633b815ab4ddcc50
parent7901f9f63e156732ab10154c34f3c2d188471a9d
Responsively enforce 16:9 ratio on all media thumbnails in web UI (#6590)

* Responsively enforce 16:9 ratio on all media thumbnails in web UI

Also change video player behaviour to "contain" rather than
"cover" videos that don't fit the ratio, unlike images and GIFs,
it's expected that a video is shown fully.

* Fix spacing issues and remove floor

* Remove floor
app/javascript/mastodon/components/media_gallery.js
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/status/components/detailed_status.js
app/javascript/mastodon/features/video/index.js
app/javascript/styles/mastodon/components.scss
app/views/stream_entries/_detailed_status.html.haml
app/views/stream_entries/_simple_status.html.haml