Skip to content

Commit

Permalink
fix(components): AppFooter always show full content
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jan 10, 2024
1 parent fd5271c commit e681250
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions components/AppLayout/AppFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ const useStyles = makeStyles(theme => ({
},
},
container: {
width: 800,
width: '100%',
maxWidth: 800,
color: theme.palette.text.primary,
gap: 20,
margin: 60,
display: 'flex',
flexWrap: 'wrap',
},
second: {
display: 'flex',
Expand All @@ -49,7 +52,8 @@ const useStyles = makeStyles(theme => ({
height: 'auto',
},
column: {
flex: '1 1',
flex: '1 1 auto',
minWidth: 'max-content', // distribute width using longest content in the column
},
linkTextWithIcon: {
marginLeft: 12,
Expand Down Expand Up @@ -169,12 +173,11 @@ function AppFooter() {
const isDesktop = useMediaQuery('(min-width:768px)');

return (
// <Box component="footer" display={['block', 'block', 'block']}>
<Box component="footer">
<div className={classes.first}>
<div className={classes.container}>
{isDesktop && <FactCheckSection classes={classes} />}
{isDesktop && <AboutSection classes={classes} />}
<FactCheckSection classes={classes} />
<AboutSection classes={classes} />
<ContactSection classes={classes} isDesktop={isDesktop} />
</div>
</div>
Expand Down

0 comments on commit e681250

Please sign in to comment.