aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue
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/components/issue
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/components/issue')
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js5
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js3
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap2
3 files changed, 3 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js b/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js
index e009ef10358..43f5adc2d91 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js
@@ -56,9 +56,8 @@ export default class IssueChangelog extends React.PureComponent {
togglePopup={this.toggleChangelog}
popup={<ChangelogPopup issue={this.props.issue} onFail={this.props.onFail} />}>
<Tooltip
- overlay={<DateTimeFormatter date={this.props.creationDate} />}
- placement="left"
- mouseEnterDelay={0.5}>
+ mouseEnterDelay={0.5}
+ overlay={<DateTimeFormatter date={this.props.creationDate} />}>
<button
className="button-link issue-action issue-action-with-options js-issue-show-changelog"
onClick={this.handleClick}>
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js b/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js
index 13de79da203..3dbe2919e6e 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js
@@ -60,8 +60,7 @@ export default function IssueTitleBar(props /*: Props */) {
overlay={translateWithParameters(
'issue.this_issue_involves_x_code_locations',
formatMeasure(locationsCount)
- )}
- placement="left">
+ )}>
<LocationIndex>{locationsCount}</LocationIndex>
</Tooltip>
);
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap
index 121ff82e65c..97f8c58d32a 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap
@@ -34,7 +34,6 @@ exports[`should open the popup when the button is clicked 2`] = `
date="2017-03-01T09:36:01+0100"
/>
}
- placement="left"
>
<button
className="button-link issue-action issue-action-with-options js-issue-show-changelog"
@@ -80,7 +79,6 @@ exports[`should render correctly 1`] = `
date="2017-03-01T09:36:01+0100"
/>
}
- placement="left"
>
<button
className="button-link issue-action issue-action-with-options js-issue-show-changelog"