From ed698231768df7018f76f15dcada9b9f731c08bd Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 16 Oct 2017 14:33:01 +0200 Subject: SONAR-9544 Long words in issue box breaks the display --- .../components/issue/components/IssueTitleBar.js | 113 +++--- .../__snapshots__/IssueTitleBar-test.js.snap | 378 ++++++++++----------- 2 files changed, 235 insertions(+), 256 deletions(-) (limited to 'server/sonar-web/src/main/js/components/issue') diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js b/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js index a445f5c1523..d1954009a18 100644 --- a/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js +++ b/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js @@ -74,69 +74,60 @@ export default function IssueTitleBar(props /*: Props */) { }); return ( - - - - - - - -
- + + +
+
    +
  • + -
-
    -
  • - -
  • - {issue.textRange != null && ( -
  • - - L{issue.textRange.endLine} - -
  • - )} - {displayLocations && ( -
  • - {props.displayLocationsLink ? ( - - {locationsBadge} - - ) : ( - locationsBadge - )} -
  • - )} -
  • - - +
  • + {issue.textRange != null && ( +
  • + + L{issue.textRange.endLine} + +
  • + )} + {displayLocations && ( +
  • + {props.displayLocationsLink ? ( + + {locationsBadge} -
  • - {hasSimilarIssuesFilter && ( -
  • - -
  • + ) : ( + locationsBadge )} -
-
+ + )} +
  • + + + +
  • + {hasSimilarIssuesFilter && ( +
  • + +
  • + )} + + + ); } diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap index 18d585695f7..edb836a3834 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap @@ -9,210 +9,198 @@ exports[`should count all code locations 1`] = ` `; exports[`should render the titlebar correctly 1`] = ` - - - - - - - -
    - +
    +
      +
    • + -
    +
  • + + L + 26 + +
  • +
  • -
      -
    • - -
    • -
    • - - L - 26 - -
    • -
    • - - - -
    • -
    -
  • + + + + + + `; exports[`should render the titlebar with the filter 1`] = ` - - - - - - - -
    - +
    +
      +
    • + -
    +
  • -
      -
    • - -
    • -
    • - - L - 26 - -
    • -
    • - - - -
    • -
    • - -
    • -
    -
  • + L + 26 + + +
  • + + + +
  • +
  • + +
  • + + + `; -- cgit v1.2.3