fix(dashboard): adjust vertical spacing for numerical range filter to prevent overlaps#36167
Conversation
|
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a vertical spacing issue in dashboard filter bars where the numerical range filter help text overlapped with filters below it. The solution involves refactoring how help messages are displayed in the Range filter plugin and adding CSS rules to increase spacing for form items with additional content.
Key Changes
- Refactored
MessageDisplaytogetFormItemExtraMessagein RangeFilterPlugin to use Ant Design's FormItemextraprop - Added CSS rule for vertical filter controls to increase margin for form items with
.ant-form-item-additionalclass - Added basic test coverage for vertical and horizontal filter controls
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
RangeFilterPlugin.tsx |
Refactored message display to use FormItem's extra prop for better integration with Ant Design form layout |
FilterControl.tsx |
Added CSS styling with media query to increase margin-bottom for form items with additional content in vertical orientation |
FilterControl.test.tsx |
Added new test file with basic tests for vertical and horizontal filter control rendering |
|
🎪 Showtime deployed environment on GHA for e0e2b1d • Environment: http://44.248.71.16:8080 (admin/admin) |
0bcdd2a to
a8614e3
Compare
|
🎪 Showtime deployed environment on GHA for 0bcdd2a • Environment: http://44.252.14.247:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for a8614e3 • Environment: http://44.255.45.242:8080 (admin/admin) |
I’ve updated the screenshots, thanks! |

SUMMARY
Fixes a spacing issue caused in #35782 by the AntD version bump, in vertical dashboard filter bars, where the numerical range filter’s help text overlapped with the filters below it.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION