Skip to content

Commit 87f4658

Browse files
committed
hide contents tab on mobile
1 parent d8df8f2 commit 87f4658

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

pages/docs/index.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,16 +425,25 @@ export default function DocsPage({ content, headings }: DocsPageProps) {
425425
html {
426426
scroll-padding-top: 100px;
427427
}
428+
429+
@media (max-width: 1023px) {
430+
.docs-sidebar {
431+
display: none !important;
432+
}
433+
.docs-container {
434+
flex-direction: column !important;
435+
}
436+
}
428437
`}</style>
429438

430-
<div style={{
439+
<div className="docs-container" style={{
431440
display: 'flex',
432441
gap: '2rem',
433442
margin: '-1.5rem -1rem',
434443
padding: '1.5rem 1rem'
435444
}}>
436445
{/* Table of Contents */}
437-
<aside style={{
446+
<aside className="docs-sidebar" style={{
438447
width: '250px',
439448
flexShrink: 0,
440449
position: 'sticky',

0 commit comments

Comments
 (0)