diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-21 10:24:00 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-27 09:16:07 -0600 |
commit | c7b04841c0b742146d88c63b83f6ac4474e77e05 (patch) | |
tree | a7ffe29f706a3acf0abf9a7070c51b660fed4b6b /app/assets/stylesheets/pages | |
parent | f48f7760c26e681e3f8b011c7c4e2b6ccfc9c3f5 (diff) | |
download | gitlab-ce-c7b04841c0b742146d88c63b83f6ac4474e77e05.tar.gz |
Wrap images in divs with Banzai and limit max-height.image-sizing
Add max-height to prevent images from displaying larger than the provided screen size.
Also fix a failing test and add a new one.
Diffstat (limited to 'app/assets/stylesheets/pages')
-rw-r--r-- | app/assets/stylesheets/pages/help.scss | 1 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/issuable.scss | 1 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/notes.scss | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/help.scss b/app/assets/stylesheets/pages/help.scss index 0b710ef168b..00ab42bec5c 100644 --- a/app/assets/stylesheets/pages/help.scss +++ b/app/assets/stylesheets/pages/help.scss @@ -63,5 +63,6 @@ border: 1px solid $table-border-gray; padding: 5px; margin: 5px; + max-height: calc(100vh - 100px); } } diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss index 21ff6ab71f0..542fa244689 100644 --- a/app/assets/stylesheets/pages/issuable.scss +++ b/app/assets/stylesheets/pages/issuable.scss @@ -10,6 +10,7 @@ border: 1px solid $table-border-gray; padding: 5px; margin: 5px; + max-height: calc(100vh - 100px); } } diff --git a/app/assets/stylesheets/pages/notes.scss b/app/assets/stylesheets/pages/notes.scss index ffba3dc5bc6..ee7c98f805b 100644 --- a/app/assets/stylesheets/pages/notes.scss +++ b/app/assets/stylesheets/pages/notes.scss @@ -113,6 +113,7 @@ ul.notes { border: 1px solid $table-border-gray; padding: 5px; margin: 5px 0; + max-height: calc(100vh - 100px); } } } |