From e681250adbf7165ade368416ab5da80342918968 Mon Sep 17 00:00:00 2001 From: MrOrz Date: Wed, 10 Jan 2024 13:26:52 +0800 Subject: [PATCH] fix(components): AppFooter always show full content --- components/AppLayout/AppFooter.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/components/AppLayout/AppFooter.js b/components/AppLayout/AppFooter.js index 2c1a5f51..544f6289 100644 --- a/components/AppLayout/AppFooter.js +++ b/components/AppLayout/AppFooter.js @@ -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', @@ -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, @@ -169,12 +173,11 @@ function AppFooter() { const isDesktop = useMediaQuery('(min-width:768px)'); return ( - //
- {isDesktop && } - {isDesktop && } + +