Repository navigation
Let BadgeGroup wrap onto more lines - #226
Open
andrewhuhh wants to merge 2 commits into
Open
andrewhuhh wants to merge 2 commits into
andrewhuhh wants to merge 2 commits into
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
💬 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. |
[Low impact] The PR appears safe to merge.
|
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BadgeGroupkeeps 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 ownflex-wraprules and a:first-childflex 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. Withoutwrapnothing 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: