aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/account
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/account
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/account')
-rw-r--r--server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx18
1 files changed, 8 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx b/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx
index cfa10ff8e37..15d180785b7 100644
--- a/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx
+++ b/server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx
@@ -39,17 +39,15 @@ export default function ProjectCard({ project }: Props) {
<div className="account-project-card clearfix">
<aside className="account-project-side">
{isAnalyzed ? (
- <Tooltip
- overlay={<DateTimeFormatter date={project.lastAnalysisDate} />}
- placement="right">
- <div className="account-project-analysis">
- <DateFromNow date={project.lastAnalysisDate}>
- {(fromNow: string) => (
+ <div className="account-project-analysis">
+ <DateFromNow date={project.lastAnalysisDate}>
+ {fromNow => (
+ <Tooltip overlay={<DateTimeFormatter date={project.lastAnalysisDate} />}>
<span>{translateWithParameters('my_account.projects.analyzed_x', fromNow)}</span>
- )}
- </DateFromNow>
- </div>
- </Tooltip>
+ </Tooltip>
+ )}
+ </DateFromNow>
+ </div>
) : (
<div className="account-project-analysis">
{translate('my_account.projects.never_analyzed')}