diff --git a/apps/venus/src/app/index.tsx b/apps/venus/src/app/index.tsx index ba344c4d1c..e3b4a76c90 100644 --- a/apps/venus/src/app/index.tsx +++ b/apps/venus/src/app/index.tsx @@ -52,7 +52,7 @@ const Alternatives = styled(Box)<{ width: string }>(({ width }) => ({ height: '128px', transform: 'translateY(-8px)', overflowY: 'hidden', - '@media (max-width: 1020px)': { + '@media (max-width: 1024px)': { width, height: '48px', transform: 'translateY(0)', @@ -64,7 +64,7 @@ const Alternatives = styled(Box)<{ width: string }>(({ width }) => ({ left: '0%', top: '0%', lineHeight: '96px', - '@media (max-width: 1020px)': { + '@media (max-width: 1024px)': { lineHeight: '32px', }, }, @@ -109,7 +109,7 @@ const Product = () => { ); const maxWidth = useMemo(() => _alternativesSize[idx], [idx]); const [active, setActive] = useState(false); - const matches = useMediaQuery('(max-width: 1020px)'); + const matches = useMediaQuery('(max-width: 1024px)'); useEffect(() => { const handle = setInterval(() => { @@ -132,7 +132,7 @@ const Product = () => { margin: 'auto', marginRight: '1em', transition: 'width .5s', - '@media (max-width: 1020px)': { + '@media (max-width: 1024px)': { width: '8em', }, }} @@ -151,7 +151,7 @@ const Product = () => { color: '#06449d', textAlign: 'right', overflow: 'hidden', - '@media (max-width: 1020px)': { + '@media (max-width: 1024px)': { fontSize: '32px', }, }} @@ -169,7 +169,7 @@ const Product = () => { marginTop: '96px', textAlign: 'right', overflow: 'hidden', - '@media (max-width: 1020px)': { + '@media (max-width: 1024px)': { marginTop: '48px', }, }} @@ -180,7 +180,7 @@ const Product = () => { sx={{ color: '#06449d', overflow: 'hidden', - '@media (max-width: 1020px)': { + '@media (max-width: 1024px)': { fontSize: '32px', }, }} @@ -198,7 +198,7 @@ const AffineImage = styled('img')({ }); const GitHub = (props: { center?: boolean; flat?: boolean }) => { - const matches = useMediaQuery('(max-width: 1020px)'); + const matches = useMediaQuery('(max-width: 1024px)'); return (