From eb0c2a441d7bc00171ec2212087e4fcf4702319d Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Fri, 12 Apr 2019 16:45:27 +0200
Subject: [PATCH] Ensure the footer always stays at the bottom of the page

---
 changes/changelog.d/footer.enhancement | 1 +
 front/src/style/_main.scss             | 6 ++++++
 2 files changed, 7 insertions(+)
 create mode 100644 changes/changelog.d/footer.enhancement

diff --git a/changes/changelog.d/footer.enhancement b/changes/changelog.d/footer.enhancement
new file mode 100644
index 0000000000..e2c117ead1
--- /dev/null
+++ b/changes/changelog.d/footer.enhancement
@@ -0,0 +1 @@
+Ensure the footer always stays at the bottom of the page
diff --git a/front/src/style/_main.scss b/front/src/style/_main.scss
index 7809840d41..cd12dda2f2 100644
--- a/front/src/style/_main.scss
+++ b/front/src/style/_main.scss
@@ -88,8 +88,14 @@ body {
   font-family: "Avenir", Helvetica, Arial, sans-serif;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
+  display: flex;
+  min-height: 100vh;
+  flex-direction: column;
 }
 
+#app > main, #app > .main {
+  flex: 1;
+}
 .instance-chooser {
   margin-top: 2em;
 }
-- 
GitLab