Skip to content

Commit 61c26c3

Browse files
committed
Align footer always to bottom
1 parent 3d5c1b9 commit 61c26c3

File tree

1 file changed

+10
-3
lines changed
  • packages/react-renderer-demo/src/app/src/components

1 file changed

+10
-3
lines changed

packages/react-renderer-demo/src/app/src/components/layout.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const useStyles = makeStyles((theme) => ({
4545
})
4646
},
4747
root: {
48-
display: 'flex'
48+
display: 'flex',
49+
minHeight: 'calc(100vh - 16px)'
4950
},
5051
appBar: {
5152
position: 'fixed',
@@ -55,6 +56,10 @@ const useStyles = makeStyles((theme) => ({
5556
})
5657
},
5758
contentWrapper: {
59+
display: 'flex',
60+
flexDirection: 'column',
61+
justifyContent: 'space-between',
62+
minHeight: '100%',
5863
paddingTop: 86
5964
},
6065
menuButton: {
@@ -217,8 +222,10 @@ const Layout = ({ children }) => {
217222
>
218223
{children}
219224
</div>
220-
<ConnectedLinks />
221-
<Footer />
225+
<div>
226+
<ConnectedLinks />
227+
<Footer />
228+
</div>
222229
</div>
223230
</main>
224231
</div>

0 commit comments

Comments
 (0)