fix(dashboard): allow filter list to scroll in filter config modal sidebar#39203
Conversation
Code Review Agent Run #97dddfActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #39203 +/- ##
=======================================
Coverage 64.40% 64.40%
=======================================
Files 2553 2553
Lines 132558 132558
Branches 30746 30746
=======================================
Hits 85377 85377
Misses 45695 45695
Partials 1486 1486
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Code Review Agent Run #a22aafActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
0f182b1 to
85c919b
Compare
Code Review Agent Run #b16825Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Code Review Agent Run #a43647Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
…debar The "Add or edit filters" modal's left sidebar did not scroll when the dashboard had many filters (~17+), making bottom filters unreachable. Two CSS issues combined: 1. The parent height chain through BaseModalBody / antd Form did not propagate height: 100% to StyledSidebarFlex, so the sidebar grew to fit its content with no upper bound. 2. The inner Collapse with flex: 1; overflow: auto could not shrink because flex items default to min-height: auto, which refuses to go below content size. Fix: - Add max-height: 70vh to StyledSidebarFlex to give it a real upper bound regardless of the parent chain. - Add min-height: 0 to BaseStyledCollapse so the flex item can shrink to fit, allowing overflow: auto to actually scroll. Both rules are accompanied by explanatory comments referencing the ticket and the underlying flexbox quirk.
The TODO suggested replacing the max-height workaround with a full height: 100% chain repair. After investigation, that fix would require modifying BaseForm in SharedStyles.tsx and ErrorBoundary, both shared across many modals — too broad a blast radius for this P2 cosmetic ticket. Removed the TODO to avoid implying it as planned work.
The 'see sc-101839' breadcrumbs in the BaseStyledCollapse comment are not load-bearing — the explanation of why min-height: 0 is needed is self-contained. Drop the ticket-specific references so future readers focus on the rationale rather than the ticket history.
9431a75 to
982d609
Compare
Code Review Agent Run #59f74dActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
The "Add or edit filters" modal's left sidebar did not scroll when the dashboard had many filters (~10 to 20+), making bottom filters unreachable. Two CSS issues combined:
BaseModalBody/ antd Form did not propagateheight: 100%toStyledSidebarFlex, so the sidebar grew to fit its content with no upper bound.Collapsewithflex: 1; overflow: autocould not shrink because flex items default tomin-height: auto, which refuses to go below content size.CHANGES
max-height: 70vhtoStyledSidebarFlexto give it a real upper bound regardless of the parent chain.min-height: 0toBaseStyledCollapseso the flex item can shrink to fit, allowingoverflow: autoto actually scroll.Both rules are accompanied by explanatory comments referencing the ticket and the underlying flexbox quirk.
(see also: Why don't flex items shrink past content size?)
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
With Example data:
ADDITIONAL INFORMATION