fix(ui): prevent overlapping banner details when multiple expanded#699
Conversation
) Add unique id_salt to ScrollArea in render_banner() so each banner's expanded details section gets its own egui ID, preventing visual overlap when multiple banners have "Show details" expanded simultaneously. Closes #681 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes overlapping banner details by propagating unique banner keys to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
Issue being fixed
Closes #681
User Story
Imagine you are a developer using Dash Evo Tool and you encounter multiple errors at once. You click "Show details" on each error banner to see the technical information — but the expanded details sections overlap each other, making them unreadable. After this fix, each banner's details section properly takes its own vertical space, so you can read and compare errors side by side.
What was done?
Added unique
id_salt(banner_key)to theScrollAreainsiderender_banner(), so each banner's expanded details section gets its own egui widget ID. Previously, multiple expandedScrollAreas without explicit IDs caused egui ID collisions, leading to visual overlap.Changes:
banner_key: u64parameter torender_banner()function.id_salt(banner_key)toScrollArea::vertical()in the details sectionstate.keyat the call site inprocess_banner()How has this been tested?
docs/ai-design/2026-03-05-banner-details-overlap/manual-test.mdTest plan
Breaking Changes
None
Checklist
🤖 Co-authored by Claudius the Magnificent AI Agent
Summary by CodeRabbit
Bug Fixes
Documentation