Skip to content

Let BadgeGroup wrap onto more lines - #226

Open
andrewhuhh wants to merge 2 commits into
mainfrom
feat/badge-group-wrap
Open

andrewhuhh wants to merge 2 commits into
mainfrom
feat/badge-group-wrap

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

BadgeGroup keeps one line and collapses the badges that don't fit into a trailing +N, which is right for table cells where every row keeps one height. A details card or a form can grow instead, and there a list of roles had no way to show in full: pages added their own flex-wrap rules and a :first-child flex override on top of the group.

<BadgeGroup wrap> shows every badge and wraps them onto more lines. A badge is capped at the group's width, and a long label wraps inside its badge, start-aligned, as it already does in the +N popover. That popover's rule is now shared rather than duplicated. A wrapping group skips its hidden measuring row entirely. Without wrap nothing changes, so the table baselines don't move.

The new "Wrapping group in a details card" example on the badge page shows one role, several roles, and long role names. Here it is at 390px:

Wrapping BadgeGroup at 390px

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cipher-226-let-badgegroup-wrap-onto-more-lines

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds BadgeGroup wrap to show every badge across multiple lines.

  • Badge groups can show every badge across as many lines as needed.

Reviews (2) · Last reviewed commit: "Keep each badge size's height as the wra..." · Reviewed by Greptile

Comment thread src/ui/helpers.module.css Resolved
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant