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/account | |
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/account')
-rw-r--r-- | server/sonar-web/src/main/js/apps/account/projects/ProjectCard.tsx | 18 |
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')} |