Commit be8b6f9
committed
🤖 fix: wait for post-highlighting scroll RAF in CodeBlocks story
The CodeBlocks story was flaky because after Shiki highlighting
completes, code block heights change which triggers the ResizeObserver
in useAutoScroll to schedule a coalesced RAF scroll. Chromatic could
capture the snapshot before this RAF completed.
Add a double-RAF wait after verifying highlighting is done, matching
the pattern used in useAutoScroll.performAutoScroll() and the
expandAllBashTools helper.
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_1 parent bb0c0b3 commit be8b6f9
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| |||
0 commit comments