]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11834 Add line wrap to source code.
authorMathieu Suen <mathieu.suen@sonarsource.com>
Thu, 8 Apr 2021 14:26:12 +0000 (16:26 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 13 Apr 2021 20:03:51 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/SourceViewer/components/Line.css

index d0e77ccd1f6d076e278afb98ced5ce1a142e40f7..a72c0e368c2414c02121bee04f47b877bb14f164 100644 (file)
   padding-bottom: 160px;
 }
 
-.source-viewer pre {
-  height: 18px;
-  padding: 0;
-}
-
 .source-viewer pre,
 .source-line-number,
 .source-line-scm {
@@ -98,6 +93,8 @@
 
 .source-line-code pre {
   float: left;
+  word-wrap: break-word;
+  white-space: pre-wrap;
 }
 
 .source-line-code .issue-list {