diff --git a/apps/venus/src/app/index.tsx b/apps/venus/src/app/index.tsx index 42c008138f..ba344c4d1c 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: 768px)': { + '@media (max-width: 1020px)': { 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: 768px)': { + '@media (max-width: 1020px)': { lineHeight: '32px', }, }, @@ -109,7 +109,7 @@ const Product = () => { ); const maxWidth = useMemo(() => _alternativesSize[idx], [idx]); const [active, setActive] = useState(false); - const matches = useMediaQuery('(max-width: 768px)'); + const matches = useMediaQuery('(max-width: 1020px)'); useEffect(() => { const handle = setInterval(() => { @@ -128,7 +128,14 @@ const Product = () => { return ( { color: '#06449d', textAlign: 'right', overflow: 'hidden', - '@media (max-width: 768px)': { + '@media (max-width: 1020px)': { fontSize: '32px', }, }} @@ -162,7 +169,7 @@ const Product = () => { marginTop: '96px', textAlign: 'right', overflow: 'hidden', - '@media (max-width: 768px)': { + '@media (max-width: 1020px)': { marginTop: '48px', }, }} @@ -173,7 +180,7 @@ const Product = () => { sx={{ color: '#06449d', overflow: 'hidden', - '@media (max-width: 768px)': { + '@media (max-width: 1020px)': { fontSize: '32px', }, }} @@ -191,7 +198,7 @@ const AffineImage = styled('img')({ }); const GitHub = (props: { center?: boolean; flat?: boolean }) => { - const matches = useMediaQuery('(max-width: 768px)'); + const matches = useMediaQuery('(max-width: 1020px)'); return (