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
2 changed files with 11 additions and 9 deletions

View File

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

View File

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