Skip to content

Commit

Permalink
More stable dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Jul 5, 2023
1 parent c3e90a8 commit c7a9d9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/mdx/dev/content/scrollycoding-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Morbi quis commodo.

```

Lorem [ipsum](focus://3)

---

## Step 3
Expand Down
4 changes: 2 additions & 2 deletions packages/mdx/src/smooth-code/use-dimensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ function useDimensions(
const allDeps = [
...deps,
windowWidth,
prevLongestLine,
nextLongestLine,
// prevLongestLine,
// nextLongestLine,
minColumns,
visibility,
]
Expand Down

0 comments on commit c7a9d9d

Please sign in to comment.