fix(client): footer should stick to the bottom

This commit is contained in:
Valeriy S
2019-05-14 17:33:24 +03:00
committed by mrugesh
parent 73961da21a
commit 6b46736801
3 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
font-size: 0.9em;
width: 100%;
padding-top: 40px;
margin-top: auto;
}
.footer .col-header {

View File

@ -164,9 +164,9 @@ class DefaultLayout extends Component {
<Flash flashMessage={flashMessage} onClose={removeFlashMessage} />
) : null}
{children}
{showFooter && <Footer />}
</div>
</WithInstantSearch>
{showFooter && <Footer />}
</Fragment>
);
}

View File

@ -594,5 +594,8 @@ pre code {
}
}
.default-layout {
display: flex;
flex-direction: column;
margin-top: var(--header-height);
min-height: calc(100vh - var(--header-height));
}