fix(TeamParticipant): keep cards side by side inside wikitables#7717
Open
Eetwalt wants to merge 1 commit into
Open
fix(TeamParticipant): keep cards side by side inside wikitables#7717Eetwalt wants to merge 1 commit into
Eetwalt wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the TeamParticipant card group layout so cards don’t collapse into a single column when rendered inside shrink-to-fit wikitable cells, while preserving the existing grid layout outside tables.
Changes:
- Adds a table-scoped override to render
.team-participant__gridas a wrapping flex container. - Sets child flex sizing to preserve the minimum card width so cards stay side-by-side when space allows and wrap on narrower viewports.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
hjpalpha
approved these changes
Jul 1, 2026
ElectricalBoy
approved these changes
Jul 1, 2026
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.
Summary
CardsGroupuses a CSS grid withrepeat(auto-fill, minmax(280px, 1fr)). Inside a shrink-to-fit wikitable cell the container width is indefinite, soauto-fillcollapses to a single column and cards stacked vertically (a note-toggle reflow "fixed" it only by accident).flex-wrapwithflex: 1 0(no shrink) in that context: cards hold their min width, so the cell shrink-wraps to them and lays them side by side when they fit, wrapping when the viewport is narrow.tabledescendants, so the normal (non-table) grid layout is unchanged.How did you test this change?
devtools
|
|