aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2021-04-27 16:06:33 +0200
committersonartech <sonartech@sonarsource.com>2021-04-29 20:03:27 +0000
commite77405eb6563a7df0f657e16c10621e7069572a2 (patch)
treebce1a7a76b7e0a2507f5b2e28a13c55d7531722e /server/sonar-web
parente790c2278588a4c51d92294ab5277b456b20a6d3 (diff)
downloadsonarqube-e77405eb6563a7df0f657e16c10621e7069572a2.tar.gz
sonarqube-e77405eb6563a7df0f657e16c10621e7069572a2.zip
SONAR-14333 Move coverage tooltip to the bottom
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx2
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCoverage-test.tsx.snap10
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx b/server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx
index 51281973fb9..b69c4347c16 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/LineCoverage.tsx
@@ -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>
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCoverage-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCoverage-test.tsx.snap
index 94fdaa21400..f1455472910 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCoverage-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCoverage-test.tsx.snap
@@ -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"