]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14333 Move coverage tooltip to the bottom
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 27 Apr 2021 14:06:33 +0000 (16:06 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 29 Apr 2021 20:03:27 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx
server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCoverage-test.tsx.snap

index 51281973fb9aaf9a0d0900a4ceedec0dc9e4793e..b69c4347c16f77fd01d953ef5553bbe5a007b68b 100644 (file)
@@ -42,7 +42,7 @@ export function LineCoverage({ line, scroll, scrollToUncoveredLine }: LineCovera
 
   return (
     <td className={className} data-line-number={line.line} ref={coverageMarker}>
-      <Tooltip overlay={status} placement="right">
+      <Tooltip overlay={status} placement="bottom">
         <div aria-label={status} className="source-line-bar" />
       </Tooltip>
     </td>
index 94fdaa21400b139c43b704d58883422e0de8e2c1..f145547291000f2b79628e7a84c582274c78474d 100644 (file)
@@ -7,7 +7,7 @@ exports[`should render correctly: covered 1`] = `
 >
   <Tooltip
     overlay="source_viewer.tooltip.covered"
-    placement="right"
+    placement="bottom"
   >
     <div
       aria-label="source_viewer.tooltip.covered"
@@ -23,7 +23,7 @@ exports[`should render correctly: no data 1`] = `
   data-line-number={3}
 >
   <Tooltip
-    placement="right"
+    placement="bottom"
   >
     <div
       className="source-line-bar"
@@ -39,7 +39,7 @@ exports[`should render correctly: partially covered, 0 conditions 1`] = `
 >
   <Tooltip
     overlay="source_viewer.tooltip.partially-covered"
-    placement="right"
+    placement="bottom"
   >
     <div
       aria-label="source_viewer.tooltip.partially-covered"
@@ -56,7 +56,7 @@ exports[`should render correctly: partially covered, 10 conditions 1`] = `
 >
   <Tooltip
     overlay="source_viewer.tooltip.partially-covered"
-    placement="right"
+    placement="bottom"
   >
     <div
       aria-label="source_viewer.tooltip.partially-covered"
@@ -73,7 +73,7 @@ exports[`should render correctly: uncovered 1`] = `
 >
   <Tooltip
     overlay="source_viewer.tooltip.uncovered"
-    placement="right"
+    placement="bottom"
   >
     <div
       aria-label="source_viewer.tooltip.uncovered"