We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c27298 commit 796f222Copy full SHA for 796f222
1 file changed
src/routes/blog.$.tsx
@@ -75,9 +75,9 @@ function BlogPost() {
75
const { _splat: slug } = Route.useParams()
76
const markdown = React.useMemo(() => parseSiteMarkdown(content), [content])
77
const headings = markdown.headings
78
- const isDesktopViewport = useMediaQuery('(min-width: 768px)')
79
80
const isTocVisible = headings.length > 1
+ const isDesktopViewport = useMediaQuery('(min-width: 768px)')
81
82
const markdownContainerRef = React.useRef<HTMLDivElement>(null)
83
const [activeHeadings, setActiveHeadings] = React.useState<Array<string>>([])
0 commit comments