Skip to content

Commit

Permalink
Fix Bug Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizFNJ committed Feb 11, 2025
1 parent 9de17a8 commit 859cd15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ const Footer = () => {
<Box
component="footer"
sx={{
position: "absolute",
bottom: 0,
textAlign: "center",
background: backgroundColor,
color: colors.white,
padding: "32px",
alignSelf: "flex-end"
}}
>
<Grid container spacing={3} justifyContent="center">
Expand Down
17 changes: 11 additions & 6 deletions src/components/MainApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,24 @@ const MainApp = ({ children }) => {
return (
<Box
sx={{
minHeight: "100vh",
width:
copilotDrawerCollapsed || vw?.md
? "100%"
: `calc(100% - ${copilotDrawerWidth}px)`,
}}
>
<Sidebar />
<Box sx={{ background: colors.white }}>
<Header />
<DonationBanner />
{renderCTAButton()}
<ContentWrapper>{children}</ContentWrapper>
<Box sx={{
display: "grid",
minHeight: "100vh",
background: colors.white
}}>
<Box>
<Header />
<DonationBanner />
{renderCTAButton()}
<ContentWrapper>{children}</ContentWrapper>
</Box>
<Footer />
{enableOverlay && <OverlaySearchResults />}
</Box>
Expand Down

0 comments on commit 859cd15

Please sign in to comment.