fix(diagram): fix scroll in walkthrough notes panel#2784
Conversation
Restructure WalkthroughPanel layout to fix scrolling issues with notes content. Moves styling from inner ScrollAreaAutosize to the outer container. Fixes #2729 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: faf6132 The changes in this PR will be included in the next version bump. This PR includes changesets to release 20 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughFixes vertical scrolling in the walkthrough notes panel by restructuring the panel container and simplifying the scroll container so long notes can overflow and be scrolled instead of being clipped. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/diagram/src/navigationpanel/walkthrough/WalkthroughPanel.tsx`:
- Line 80: The ScrollAreaAutosize in WalkthroughPanel.tsx currently lacks an
explicit max height so it can grow unbounded and won't scroll; update the
component usage (ScrollAreaAutosize) to include a fixed height constraint (use
the same `mah` prop pattern as in SearchInput.tsx) so the scroll container has a
bounded height when `type="scroll"` and vertical scrolling will work correctly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 80da4676-9ddd-4cdf-9c32-c47feed102db
📒 Files selected for processing (4)
.changeset/fix-walkthrough-notes-scroll.md.gitignore.vscode/settings.jsonpackages/diagram/src/navigationpanel/walkthrough/WalkthroughPanel.tsx
💤 Files with no reviewable changes (1)
- .vscode/settings.json
…nel.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Denis Davydkov <denis@davydkov.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/diagram/src/navigationpanel/walkthrough/WalkthroughPanel.tsx`:
- Line 80: The ScrollAreaAutosize usage in WalkthroughPanel sets mah="100%"
which relies on an indeterminate parent height; change the max-height constraint
to match the panel's actual constraint (e.g., replace mah="100%" with
mah="calc(100cqh - 100px)" or set an explicit maxHeight style) so
ScrollAreaAutosize calculates bounds against the same maxHeight as the parent
container; locate the ScrollAreaAutosize in WalkthroughPanel.tsx and update its
mah prop or add a matching style/maxHeight prop to align with the parent's
maxHeight.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8bebf621-9ea0-4e90-8f78-eb1939922444
📒 Files selected for processing (1)
packages/diagram/src/navigationpanel/walkthrough/WalkthroughPanel.tsx
Summary
ScrollAreaAutosizeto the outer container for proper scroll behaviorFixes #2729
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Chores