]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12942 Security hostpot category are not displayed properly with long category...
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Mon, 24 Aug 2020 12:39:52 +0000 (14:39 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 27 Aug 2020 20:06:11 +0000 (20:06 +0000)
server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotCategory.tsx
server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotCategory-test.tsx.snap

index 21ce4025421c2238df3ee54af6861b9829b06ec5..e78ac19127293a9ca5863c05767dc5dc2d52656c 100644 (file)
@@ -53,7 +53,7 @@ export default function HotspotCategory(props: HotspotCategoryProps) {
         )}
         href="#"
         onClick={() => props.onToggleExpand(categoryKey, !expanded)}>
-        <strong className="flex-1">{title}</strong>
+        <strong className="flex-1 spacer-right break-word">{title}</strong>
         <span>
           <span className="counter-badge">
             {hotspots.length}
index c8520210c7e2f6a88df285c7827ef531bdad2e46..cd2664c3ad4c00a0d093f3470ae46f3d2eb450f0 100644 (file)
@@ -10,7 +10,7 @@ exports[`should render correctly with hotspots 1`] = `
     onClick={[Function]}
   >
     <strong
-      className="flex-1"
+      className="flex-1 spacer-right break-word"
     >
       Class Injection
     </strong>
@@ -92,7 +92,7 @@ exports[`should render correctly with hotspots: collapsed 1`] = `
     onClick={[Function]}
   >
     <strong
-      className="flex-1"
+      className="flex-1 spacer-right break-word"
     >
       Class Injection
     </strong>
@@ -120,7 +120,7 @@ exports[`should render correctly with hotspots: contains selected 1`] = `
     onClick={[Function]}
   >
     <strong
-      className="flex-1"
+      className="flex-1 spacer-right break-word"
     >
       Class Injection
     </strong>
@@ -202,7 +202,7 @@ exports[`should render correctly with hotspots: lastAndIncomplete 1`] = `
     onClick={[Function]}
   >
     <strong
-      className="flex-1"
+      className="flex-1 spacer-right break-word"
     >
       Class Injection
     </strong>