Skip to content

Conversation

YarivHashaiComet
Copy link
Collaborator

@YarivHashaiComet YarivHashaiComet commented Sep 4, 2025

Details

  • 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

Change checklist

  • User facing
  • Documentation update

Issues

  • Resolves #
  • OPIK-1487

Testing

Screenshot 2025-09-04 at 21 39 31

Documentation

- 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
Copy link
Contributor

github-actions bot commented Sep 4, 2025

📋 PR Linter Failed

Incomplete Details Section. The ## Details section cannot be empty.


Incomplete Issues Section. You must reference at least one GitHub issue (#xxxx) or Jira ticket (OPIK-xxxx) under the ## Issues section.

1 similar comment
Copy link
Contributor

github-actions bot commented Sep 4, 2025

📋 PR Linter Failed

Incomplete Details Section. The ## Details section cannot be empty.


Incomplete Issues Section. You must reference at least one GitHub issue (#xxxx) or Jira ticket (OPIK-xxxx) under the ## Issues section.

Copy link
Contributor

github-actions bot commented Sep 4, 2025

📋 PR Linter Failed

Incomplete Issues Section. You must reference at least one GitHub issue (#xxxx) or Jira ticket (OPIK-xxxx) under the ## Issues section.

1 similar comment
Copy link
Contributor

github-actions bot commented Sep 4, 2025

📋 PR Linter Failed

Incomplete Issues Section. You must reference at least one GitHub issue (#xxxx) or Jira ticket (OPIK-xxxx) under the ## Issues section.

- 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
Copy link
Contributor

github-actions bot commented Sep 4, 2025

📋 PR Linter Failed

Incomplete Issues Section. You must reference at least one GitHub issue (#xxxx) or Jira ticket (OPIK-xxxx) under the ## Issues section.

@YarivHashaiComet YarivHashaiComet marked this pull request as ready for review September 4, 2025 18:45
@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 18:45
@YarivHashaiComet YarivHashaiComet requested a review from a team as a code owner September 4, 2025 18:45
Copy link
Contributor

@Copilot Copilot AI left a 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

Copy link
Contributor

@andriidudar andriidudar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@YarivHashaiComet YarivHashaiComet merged commit 61ec962 into main Sep 5, 2025
7 checks passed
@YarivHashaiComet YarivHashaiComet deleted the yariv/OPIK-1487-fix-long-legends-metrics-charts branch September 5, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants