Skip to content

Commit 388e434

Browse files
committed
Invert staticMediaQuery
1 parent a9d8d5a commit 388e434

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/mdx/src/mdx-client/scrollycoding.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export function Scrollycoding(props) {
2525
match={[
2626
[
2727
props.codeConfig.staticMediaQuery,
28-
<DynamicScrollycoding {...props} />,
28+
<StaticScrollycoding {...props} />,
2929
],
30-
["default", <StaticScrollycoding {...props} />],
30+
["default", <DynamicScrollycoding {...props} />],
3131
]}
3232
/>
3333
)

packages/mdx/src/remark/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function addConfigDefaults(
2020
): CodeHikeConfig {
2121
// TODO warn when config looks weird
2222
return {
23-
staticMediaQuery: "screen and (min-width: 768px)",
23+
staticMediaQuery: "not screen, (max-width: 768px)",
2424
...config,
2525
theme: config?.theme || {},
2626
autoImport: config?.autoImport === false ? false : true,

0 commit comments

Comments
 (0)