aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/system
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-04-04 08:43:42 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2018-04-04 14:40:51 +0200
commit75abdef0c27dc443aaa4f05c2e868119887afb3c (patch)
tree518a685db666e6a38b6c92212bffbdfa39054849 /server/sonar-web/src/main/js/apps/system
parent941cdf85a80bdf1049a6e3a2dfaa0690969a5e45 (diff)
downloadsonarqube-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')
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthItem-test.tsx.snap1
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