From 3ae5ee8099e4f605d39d7e93a9a3219b0afe928c Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Thu, 8 Apr 2021 16:26:12 +0200 Subject: [PATCH] SONAR-11834 Add line wrap to source code. --- .../main/js/components/SourceViewer/components/Line.css | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/Line.css b/server/sonar-web/src/main/js/components/SourceViewer/components/Line.css index d0e77ccd1f6..a72c0e368c2 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/Line.css +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/Line.css @@ -78,11 +78,6 @@ 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 { -- 2.39.5