diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-08 02:34:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-08 02:34:49 +0200 |
commit | 684001d729a4684ab00a24e31ec39f8cae6e37a7 (patch) | |
tree | 41079a1c50ad2b45cd2c3fabf42b0737626dd32f /app/javascript/styles | |
parent | 292f3cd7e0db0d71cb3202e65185f06fd04c475f (diff) |
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
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/components.scss | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss index d578e9930..b6da70c91 100644 --- a/app/javascript/styles/components.scss +++ b/app/javascript/styles/components.scss @@ -2155,22 +2155,9 @@ button.icon-button.active i.fa-retweet { } .status-card-video { - position: relative; - width: 100%; - height: auto; - padding-top: 56.25%; - iframe { - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - width: 1px; - min-width: 100%; - height: 1px; - min-height: 100%; - margin: auto; + width: 100%; + height: 100%; } } |