]> Untitled Git - lemmy.git/commitdiff
[CSS] Sticky Footer
authorSmit Patel <the1995captainh@gmail.com>
Thu, 16 Jan 2020 01:24:47 +0000 (06:54 +0530)
committerSmit Patel <the1995captainh@gmail.com>
Thu, 16 Jan 2020 01:24:47 +0000 (06:54 +0530)
ui/assets/css/main.css
ui/src/index.tsx

index 9a0fc52ba4a3e66afb5e27fd721069f2b3598083..fd29e756a0076cdb8ad7dc7ca9d4c4cc61a0fc97 100644 (file)
@@ -148,3 +148,13 @@ hr {
   overflow: hidden;
   text-overflow: ellipsis
 }
+
+#app {
+  display: flex;
+  flex-direction: column;
+  min-height: 100vh;
+}
+
+.fl-1 {
+  flex: 1;
+}
\ No newline at end of file
index 41404f4ba6489ea5c93459bd9dc458136b519072..5eeb3038b13380a561a74f79fcf0ba0820c114da 100644 (file)
@@ -36,7 +36,7 @@ class Index extends Component<any, any> {
       <Provider i18next={i18n}>
         <BrowserRouter>
           <Navbar />
-          <div class="mt-4 p-0">
+          <div class="mt-4 p-0 fl-1">
             <Switch>
               <Route exact path={`/`} component={Main} />
               <Route