summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-19 19:19:22 +0100
committerPhil Hughes <me@iamphill.com>2016-07-20 08:42:59 +0100
commitcf33acb32b12cf482e0279043e8cd02131c456e6 (patch)
treea7408f586ca842acebe0d7ee73dd109cc39972ed
parent5cf89e70b70de008d5b91e89ce015522616e96cb (diff)
downloadgitlab-ce-file-content-highlight-line.tar.gz
Fixed wrapping of lines on smaller viewportsfile-content-highlight-line
-rw-r--r--app/assets/stylesheets/framework/highlight.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/highlight.scss b/app/assets/stylesheets/framework/highlight.scss
index 11b2a4cbf89..07c8874bf03 100644
--- a/app/assets/stylesheets/framework/highlight.scss
+++ b/app/assets/stylesheets/framework/highlight.scss
@@ -20,6 +20,8 @@
border-left: 1px solid;
code {
+ display: inline-block;
+ min-width: 100%;
font-family: $monospace_font;
white-space: normal;
word-wrap: normal;
@@ -31,6 +33,7 @@
min-height: 19px;
padding-left: 10px;
padding-right: 10px;
+ white-space: pre;
}
}
}