We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9d8d5a + 388e434 commit 803d5c1Copy full SHA for 803d5c1
packages/mdx/src/mdx-client/scrollycoding.tsx
@@ -25,9 +25,9 @@ export function Scrollycoding(props) {
25
match={[
26
[
27
props.codeConfig.staticMediaQuery,
28
- <DynamicScrollycoding {...props} />,
+ <StaticScrollycoding {...props} />,
29
],
30
- ["default", <StaticScrollycoding {...props} />],
+ ["default", <DynamicScrollycoding {...props} />],
31
]}
32
/>
33
)
packages/mdx/src/remark/config.ts
@@ -20,7 +20,7 @@ export function addConfigDefaults(
20
): CodeHikeConfig {
21
// TODO warn when config looks weird
22
return {
23
- staticMediaQuery: "screen and (min-width: 768px)",
+ staticMediaQuery: "not screen, (max-width: 768px)",
24
...config,
theme: config?.theme || {},
autoImport: config?.autoImport === false ? false : true,
0 commit comments