diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-19 02:39:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 02:39:18 +0100 |
commit | cbb69d41f6eda4d997f7bcb89e9aef8fd8bec2e4 (patch) | |
tree | df9fc772da8052fe87902cc03ecc89de482bcefb /app/javascript/mastodon/components/media_gallery.js | |
parent | bb26cdda242afff59f7718b3211732fc068980f1 (diff) |
Fix media spoiler design (#6507)
- 4px rounded corners on media attachments - Better colors/contrast for CW/media spoiler on public pages - Fix vertical alignment of "Show more" button - Fix layout jump when unhiding standalone media
Diffstat (limited to 'app/javascript/mastodon/components/media_gallery.js')
-rw-r--r-- | app/javascript/mastodon/components/media_gallery.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 00943e205..a3ffc45ea 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -227,12 +227,8 @@ export default class MediaGallery extends React.PureComponent { const style = {}; if (this.isStandaloneEligible()) { - if (!visible && width) { - // only need to forcibly set the height in "sensitive" mode + if (width) { style.height = width / this.props.media.getIn([0, 'meta', 'small', 'aspect']); - } else { - // layout automatically, using image's natural aspect ratio - style.height = ''; } } else { // crop the image |