-
Notifications
You must be signed in to change notification settings - Fork 977
[OPIK-1487] [FE] Fix long legends in Metrics tab charts with scrollbar #3201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OPIK-1487] [FE] Fix long legends in Metrics tab charts with scrollbar #3201
Conversation
- Add max-h-20 overflow-y-auto to horizontal chart legends - Constrains legends to ~80px height with scrollbar when needed - Fixes overwhelming UI when charts have 25+ legend items
📋 PR Linter Failed❌ Incomplete Details Section. The ❌ Incomplete Issues Section. You must reference at least one GitHub issue ( |
1 similar comment
📋 PR Linter Failed❌ Incomplete Details Section. The ❌ Incomplete Issues Section. You must reference at least one GitHub issue ( |
📋 PR Linter Failed❌ Incomplete Issues Section. You must reference at least one GitHub issue ( |
1 similar comment
📋 PR Linter Failed❌ Incomplete Issues Section. You must reference at least one GitHub issue ( |
- Add max-h-20 overflow-y-auto to horizontal chart legends - Constrains legends to ~80px height with scrollbar when needed - Fixes overwhelming UI when charts have 25+ legend items
📋 PR Linter Failed❌ Incomplete Issues Section. You must reference at least one GitHub issue ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses UI overflow issues in chart legends by adding scroll constraints when there are many legend items (25+). The fix prevents overwhelming UI by limiting legend height to approximately 80px with a scrollbar when needed.
- Add scroll constraints to horizontal chart legends
- Replace gap spacing with more consistent gap-y-1 for vertical spacing
- Maintain existing horizontal spacing while adding overflow handling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Details
Change checklist
Issues
Testing
Documentation