]> cat aescling's git repositories - mastodon.git/commit
Dynamically calculate card height for embeds instead of padding (#5265)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 8 Oct 2017 00:34:49 +0000 (02:34 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Oct 2017 00:34:49 +0000 (02:34 +0200)
commit684001d729a4684ab00a24e31ec39f8cae6e37a7
tree41079a1c50ad2b45cd2c3fabf42b0737626dd32f
parent292f3cd7e0db0d71cb3202e65185f06fd04c475f
Dynamically calculate card height for embeds instead of padding (#5265)

The padding trick was hard-coded to a 16:9 ratio, but we can use
width and height provided from OEmbed information and width
of the card itself to calculate a new height
app/javascript/mastodon/features/status/components/card.js
app/javascript/styles/components.scss