summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-08-20 17:12:24 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-08-20 17:13:42 +0100
commit8ae1a585ea8e0e272891cdd06a2bdddf51c71c2c (patch)
tree4d4367796ba9e96fa664da68c9f1059158a73039
parent519ffec47d3dc29be96e6ae95157b6582d0b91dd (diff)
downloadgitlab-ce-48145-illustration.tar.gz
Define width as max-width to allow svgs to scale in smaller screens48145-illustration
-rw-r--r--app/assets/stylesheets/framework/images.scss2
-rw-r--r--changelogs/unreleased/48145-illustration.yml5
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/images.scss b/app/assets/stylesheets/framework/images.scss
index f878ec1ca91..1e93bf2b751 100644
--- a/app/assets/stylesheets/framework/images.scss
+++ b/app/assets/stylesheets/framework/images.scss
@@ -25,7 +25,7 @@
&.svg-#{$width} {
img,
svg {
- width: #{$width + 'px'};
+ max-width: #{$width + 'px'};
}
}
}
diff --git a/changelogs/unreleased/48145-illustration.yml b/changelogs/unreleased/48145-illustration.yml
new file mode 100644
index 00000000000..7d84075c2b3
--- /dev/null
+++ b/changelogs/unreleased/48145-illustration.yml
@@ -0,0 +1,5 @@
+---
+title: Fixes SVGs for empty states in job page overflowing on mobile
+merge_request:
+author:
+type: fixed