aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2019-01-10 14:44:16 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:42:57 +0100
commitd2ad1ae864f54d37bb1141f197624088ea6f4938 (patch)
treea3503e047c30473607fac5493fdb45c92bfd74a3
parent933f5b5f31726704a48ec64142c1d9b1ad786cff (diff)
downloadsonarqube-d2ad1ae864f54d37bb1141f197624088ea6f4938.tar.gz
sonarqube-d2ad1ae864f54d37bb1141f197624088ea6f4938.zip
Fix display for pages with long code snippets
-rw-r--r--server/sonar-web/src/main/js/apps/documentation/styles.css5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/documentation/styles.css b/server/sonar-web/src/main/js/apps/documentation/styles.css
index 9d443ce281e..7faf301a007 100644
--- a/server/sonar-web/src/main/js/apps/documentation/styles.css
+++ b/server/sonar-web/src/main/js/apps/documentation/styles.css
@@ -120,15 +120,18 @@
.markdown.has-toc {
display: flex;
- padding-right: var(--gridSize);
}
.markdown.has-toc .markdown-content {
flex-shrink: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ overflow-x: auto;
}
.markdown-toc {
flex: 0 0 240px;
+ margin-right: -40px;
}
.markdown-toc-content {