diff --git a/docs/src/components/footer/EmailSubscribe.tsx b/docs/src/components/footer/EmailSubscribe.tsx index 7353df7a453743..c724ff27137af7 100644 --- a/docs/src/components/footer/EmailSubscribe.tsx +++ b/docs/src/components/footer/EmailSubscribe.tsx @@ -104,7 +104,7 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps }) { mt: 1, gap: 1.5, width: { xs: '100%', sm: 'auto' }, - maxWidth: 320, + maxWidth: { xs: '100%', sm: 320 }, }} > - ({ - textAlign: 'center', - py: 1, - position: 'relative', - borderBottom: '1px solid', - borderColor: 'grey.100', - ...theme.applyDarkStyles({ - borderColor: 'primaryDark.600', - }), - })} + - - Trades, October 2020 - - + Trades, October 2020 + + diff --git a/docs/src/components/productX/XComponents.tsx b/docs/src/components/productX/XComponents.tsx index af9e2057fb98f3..7ffdd54f782ee2 100644 --- a/docs/src/components/productX/XComponents.tsx +++ b/docs/src/components/productX/XComponents.tsx @@ -34,7 +34,7 @@ export default function XComponents() { item xs={12} md={6} - sx={componentIndex === 0 ? { minHeight: { xs: 777, sm: 757, md: 'unset' } } : {}} + sx={componentIndex === 0 ? { minHeight: { xs: 'auto', sm: 757, md: 'unset' } } : {}} > {componentIndex === 0 && } diff --git a/docs/src/components/productX/XComponentsSwitcher.tsx b/docs/src/components/productX/XComponentsSwitcher.tsx index 0644c39ac97d05..1c8466213b9291 100644 --- a/docs/src/components/productX/XComponentsSwitcher.tsx +++ b/docs/src/components/productX/XComponentsSwitcher.tsx @@ -33,8 +33,7 @@ function ComponentItem({ component="span" sx={{ display: 'flex', - py: 1.5, - px: 2, + p: 2, flexDirection: { xs: 'column', md: 'row' }, alignItems: { md: 'center' }, gap: 2.5, @@ -90,12 +89,11 @@ function ComponentItem({ } export default function XComponentsSwitcher(props: { - inView?: boolean; componentIndex: number; setComponentIndex: React.Dispatch>; }) { - const { inView = false, componentIndex, setComponentIndex } = props; - const productElements = [ + const { componentIndex, setComponentIndex } = props; + const componentElement = [ div': { pr: '32%' }, }} > - {inView && ( - setComponentIndex(index)} - > - {productElements.map((element, index) => ( - setComponentIndex(index)} - selected={componentIndex === index} - sx={{ - width: '100%', - transition: '0.3s', - transform: componentIndex !== index ? 'scale(0.9)' : 'scale(1)', - }} - > - {element} - - ))} - - )} + setComponentIndex(index)} + > + {componentElement.map((element, index) => ( + setComponentIndex(index)} + selected={componentIndex === index} + sx={{ + width: '100%', + transition: '0.3s', + transform: componentIndex !== index ? 'scale(0.9)' : 'scale(1)', + }} + > + {element} + + ))} + - {productElements.map((elm, index) => ( + {componentElement.map((element, index) => ( setComponentIndex(index)} selected={componentIndex === index} > - {elm} + {element} ))} diff --git a/docs/src/components/productX/XGridFullDemo.tsx b/docs/src/components/productX/XGridFullDemo.tsx index d99cf76258ec64..50c7993ef6bd3b 100644 --- a/docs/src/components/productX/XGridFullDemo.tsx +++ b/docs/src/components/productX/XGridFullDemo.tsx @@ -65,7 +65,7 @@ function SettingsPanel(props: GridToolbarContainerProps) { *': { @@ -109,7 +109,12 @@ function SettingsPanel(props: GridToolbarContainerProps) { ))} - @@ -266,7 +271,7 @@ export default function XGridFullDemo() { /> - + diff --git a/docs/src/layouts/AppFooter.tsx b/docs/src/layouts/AppFooter.tsx index b927372b9394f7..a90e89763a0d32 100644 --- a/docs/src/layouts/AppFooter.tsx +++ b/docs/src/layouts/AppFooter.tsx @@ -59,7 +59,7 @@ export default function AppFooter(props: AppFooterProps) { Join our newsletter for regular updates. No spam ever. - + [ { minHeight: 34, + minWidth: 34, display: 'flex', alignItems: 'center', margin: 0,