Skip to content

Commit 2049fb2

Browse files
authored
Merge pull request #397 from code-hike/stable-focus-link
Stable dimensions
2 parents c3e90a8 + c7a9d9d commit 2049fb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/mdx/dev/content/scrollycoding-demo.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Morbi quis commodo.
7373

7474
```
7575

76+
Lorem [ipsum](focus://3)
77+
7678
---
7779

7880
## Step 3

packages/mdx/src/smooth-code/use-dimensions.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ function useDimensions(
136136
const allDeps = [
137137
...deps,
138138
windowWidth,
139-
prevLongestLine,
140-
nextLongestLine,
139+
// prevLongestLine,
140+
// nextLongestLine,
141141
minColumns,
142142
visibility,
143143
]

0 commit comments

Comments
 (0)