fix(ui): do not add extra spacing to every ant row. Closes #3031 (#3033)

This commit is contained in:
Gabe Kangas 2023-05-19 17:34:23 -07:00 committed by GitHub
parent f09ae62001
commit 4e1da3fa23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View File

@ -4,13 +4,11 @@
// this margin is for fixed header
padding-top: var(--header-height);
background-color: var(--theme-color-main-background);
min-height: 100vh;
position: relative;
min-height: 100vh;
position: relative;
// add some spacing between the last row of content and the footer
:global(.ant-row) {
&:last-of-type {
margin-bottom: 5em;
}
}
// add some spacing between the last row of content and the footer
.footerContainer {
margin-top: 5em;
}
}

View File

@ -171,7 +171,11 @@ export const Main: FC = () => {
<FatalErrorStateModal title={fatalError.title} message={fatalError.message} />
)}
{(!isMobile || !online) && <Footer dynamicPaddingValue={dynamicFooterPadding} />}
{(!isMobile || !online) && (
<div className={styles.footerContainer}>
<Footer dynamicPaddingValue={dynamicFooterPadding} />
</div>
)}
</Layout>
<Noscript />
</>