aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/documentation
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-06-06 11:56:47 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-08 20:20:51 +0200
commit3676583b19547def4c0824c4a9c3c499a2a5c7b3 (patch)
tree7d3fe52e4952cc8b6021872339ff0efe2f0a6cfd /server/sonar-web/src/main/js/apps/documentation
parent4214a7a047224ad450230ce914598c6b5e137392 (diff)
downloadsonarqube-3676583b19547def4c0824c4a9c3c499a2a5c7b3.tar.gz
sonarqube-3676583b19547def4c0824c4a9c3c499a2a5c7b3.zip
SONAR-10612 Fix footer of documentation page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/documentation')
-rw-r--r--server/sonar-web/src/main/js/apps/documentation/components/App.tsx10
-rw-r--r--server/sonar-web/src/main/js/apps/documentation/styles.css5
2 files changed, 15 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/documentation/components/App.tsx b/server/sonar-web/src/main/js/apps/documentation/components/App.tsx
index 50f5672de0e..fc84c6d4c43 100644
--- a/server/sonar-web/src/main/js/apps/documentation/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/documentation/components/App.tsx
@@ -48,6 +48,11 @@ export default class App extends React.PureComponent<Props, State> {
componentDidMount() {
this.mounted = true;
this.fetchContent(this.props.params.splat || 'index');
+
+ const footer = document.getElementById('footer');
+ if (footer) {
+ footer.classList.add('page-footer-with-sidebar', 'documentation-footer');
+ }
}
componentWillReceiveProps(nextProps: Props) {
@@ -60,6 +65,11 @@ export default class App extends React.PureComponent<Props, State> {
componentWillUnmount() {
this.mounted = false;
+
+ const footer = document.getElementById('footer');
+ if (footer) {
+ footer.classList.remove('page-footer-with-sidebar', 'documentation-footer');
+ }
}
fetchContent = (path: string) => {
diff --git a/server/sonar-web/src/main/js/apps/documentation/styles.css b/server/sonar-web/src/main/js/apps/documentation/styles.css
index 089f3e36189..3b0071d3f25 100644
--- a/server/sonar-web/src/main/js/apps/documentation/styles.css
+++ b/server/sonar-web/src/main/js/apps/documentation/styles.css
@@ -25,3 +25,8 @@
margin-bottom: calc(4 * var(--gridSize));
font-size: 20px;
}
+
+.documentation-footer div,
+.documentation-footer .page-footer-menu {
+ max-width: 740px;
+}