Skip to content

Commit 803d5c1

Browse files
authored
Merge pull request #229 from code-hike/invert-static-media
Invert staticMediaQuery
2 parents a9d8d5a + 388e434 commit 803d5c1

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)