diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2021-04-27 16:06:33 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-04-29 20:03:27 +0000 |
commit | e77405eb6563a7df0f657e16c10621e7069572a2 (patch) | |
tree | bce1a7a76b7e0a2507f5b2e28a13c55d7531722e /server/sonar-web | |
parent | e790c2278588a4c51d92294ab5277b456b20a6d3 (diff) | |
download | sonarqube-e77405eb6563a7df0f657e16c10621e7069572a2.tar.gz sonarqube-e77405eb6563a7df0f657e16c10621e7069572a2.zip |
SONAR-14333 Move coverage tooltip to the bottom
Diffstat (limited to 'server/sonar-web')
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" |