summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/mixins.scss
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2018-05-15 21:00:51 +0000
committerAnnabel Gray <annabel.m.gray@gmail.com>2018-05-15 21:00:51 +0000
commit3fb8d1011dc5ffdb5ad3c64248c4649a0ab39dd0 (patch)
tree4e71f849be402d63eea18d0834a14858523decff /app/assets/stylesheets/framework/mixins.scss
parent728441a4080332d567a881d9ad833c211d6ab643 (diff)
downloadgitlab-ce-3fb8d1011dc5ffdb5ad3c64248c4649a0ab39dd0.tar.gz
Fix bug with long strings in issue boards
Diffstat (limited to 'app/assets/stylesheets/framework/mixins.scss')
-rw-r--r--app/assets/stylesheets/framework/mixins.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/mixins.scss b/app/assets/stylesheets/framework/mixins.scss
index 9ff24ebc127..0ea0b65b95f 100644
--- a/app/assets/stylesheets/framework/mixins.scss
+++ b/app/assets/stylesheets/framework/mixins.scss
@@ -210,3 +210,15 @@
margin-left: -$size;
}
}
+
+/*
+ * Mixin that fixes wrapping issues with long strings (e.g. URLs)
+ *
+ * Note: the width needs to be set for it to work in Firefox
+ */
+@mixin overflow-break-word {
+ overflow-wrap: break-word;
+ word-wrap: break-word;
+ word-break: break-word;
+ max-width: 100%;
+}