Skip to content

Commit

Permalink
docs: fix mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Aug 25, 2023
1 parent eda562c commit b6aa120
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .dumi/pages/index/components/PreviewBanner/index.tsx
Expand Up @@ -43,6 +43,7 @@ const useStyle = createStyles(({ token, css }) => {
text-align: center;
position: relative;
z-index: 1;
padding-inline: ${token.paddingXL}px;
text-shadow: ${new Array(5)
.fill(null)
.map(() => textShadow)
Expand Down Expand Up @@ -106,7 +107,8 @@ export default function PreviewBanner(props: PreviewBannerProps) {
/>

<div className={styles.holder}>
<ComponentsBlock className={styles.block} />
{/* Mobile not show the component preview */}
{!isMobile && <ComponentsBlock className={styles.block} />}

<Typography className={styles.typography}>
<h1>Ant Design 5.0</h1>
Expand Down

0 comments on commit b6aa120

Please sign in to comment.