diff options
author | Sorin Davidoi <sorin.davidoi@gmail.com> | 2017-06-27 13:46:37 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-27 13:46:37 +0200 |
commit | be92babd008a7356738dec1aa7f36500638d00e5 (patch) | |
tree | ecab90f8c20da07534300c96407d418967deb3b1 /app/javascript/styles | |
parent | e2dd576a1b20c324c88afadaaa4f23e554b73ec7 (diff) |
Responsive images in media gallery (#3963)
* feat(components/media_gallery): Responsive images * fix(components/media_gallery): Link to image URL
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/components.scss | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss index 91ebd91fd..84732ed4a 100644 --- a/app/javascript/styles/components.scss +++ b/app/javascript/styles/components.scss @@ -3453,10 +3453,15 @@ button.icon-button.active i.fa-retweet { background-repeat: no-repeat; background-size: cover; cursor: zoom-in; - display: block; - height: 100%; + display: flex; + align-items: center; text-decoration: none; - width: 100%; + height: 100%; + + &, + img { + width: 100%; + } } .media-gallery__gifv { |