aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2020-08-24 14:13:54 +0200
committersonartech <sonartech@sonarsource.com>2020-08-27 20:06:11 +0000
commit49ee415f4a13e435f5d86a125666532b8fb029a9 (patch)
tree33183269514430f8ae4950d453b0419e11431e6f /server/sonar-web/src/main/js/components/issue
parent56826fb52dbddbe6166f7a1e80065bddc7fd254a (diff)
downloadsonarqube-49ee415f4a13e435f5d86a125666532b8fb029a9.tar.gz
sonarqube-49ee415f4a13e435f5d86a125666532b8fb029a9.zip
SONAR-13786 Issue message is not displayed correctly when it is too long
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue')
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap8
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
index cd2e2a3c600..970748031e9 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
@@ -38,7 +38,7 @@ export default function IssueMessage(props: IssueMessageProps) {
const ruleEngine = engineName ? engineName : engine;
return (
- <div className="issue-message">
+ <div className="issue-message break-word">
<span className="spacer-right">{message}</span>
<ButtonLink
aria-label={translate('issue.why_this_issue.long')}
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
index f44d6a3ed56..1142d0b5bb8 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
@@ -2,7 +2,7 @@
exports[`should render correctly: default 1`] = `
<div
- className="issue-message"
+ className="issue-message break-word"
>
<span
className="spacer-right"
@@ -21,7 +21,7 @@ exports[`should render correctly: default 1`] = `
exports[`should render correctly: is manual vulnerability 1`] = `
<div
- className="issue-message"
+ className="issue-message break-word"
>
<span
className="spacer-right"
@@ -49,7 +49,7 @@ exports[`should render correctly: is manual vulnerability 1`] = `
exports[`should render correctly: with engine info 1`] = `
<div
- className="issue-message"
+ className="issue-message break-word"
>
<span
className="spacer-right"
@@ -77,7 +77,7 @@ exports[`should render correctly: with engine info 1`] = `
exports[`should render correctly: with engine name 1`] = `
<div
- className="issue-message"
+ className="issue-message break-word"
>
<span
className="spacer-right"