diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-04-04 08:43:42 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2018-04-04 14:40:51 +0200 |
commit | 75abdef0c27dc443aaa4f05c2e868119887afb3c (patch) | |
tree | 518a685db666e6a38b6c92212bffbdfa39054849 /server/sonar-web/src/main/js/apps/system | |
parent | 941cdf85a80bdf1049a6e3a2dfaa0690969a5e45 (diff) | |
download | sonarqube-75abdef0c27dc443aaa4f05c2e868119887afb3c.tar.gz sonarqube-75abdef0c27dc443aaa4f05c2e868119887afb3c.zip |
SONAR-9697 Ensure tooltips are always placed correctly (#77)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/system')
2 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx index fec291e244a..5bea29aae5c 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx @@ -45,9 +45,7 @@ export default function HealthItem({ biggerHealth, className, name, health, heal <HealthCauseItem key={idx} className="spacer-right" health={health} healthCause={cause} /> ))} {name ? ( - <Tooltip - overlay={translateWithParameters('system.current_health_of_x', name)} - placement="left"> + <Tooltip overlay={translateWithParameters('system.current_health_of_x', name)}> <span>{statusIndicator}</span> </Tooltip> ) : ( diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthItem-test.tsx.snap index 6b224445797..8f8a741f4b0 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthItem-test.tsx.snap @@ -32,7 +32,6 @@ exports[`should render correctly 1`] = ` /> <Tooltip overlay="system.current_health_of_x.Foo" - placement="left" > <span> <StatusIndicator |