Skip to content

fix(design): let the card body fill the card - #4615

Merged
xelaint merged 1 commit into
developfrom
bug/card-body-width
Jul 27, 2026
Merged

fix(design): let the card body fill the card#4615
xelaint merged 1 commit into
developfrom
bug/card-body-width

Conversation

@xelaint

@xelaint xelaint commented Jul 27, 2026

Copy link
Copy Markdown
Member

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Fixes: #
Part of: #

New behavior

.daff-card__wrapper had no flex-grow, so it sized to its content and left the remainder of the flex line empty. Any card whose image has a definite width, or that has no image at all, got a body narrower than the card — text wrapped early, and on linked cards the hover overlay stopped short of the edge. min-width: 0 lets the body shrink past its min-content width so a long word pushes the text instead of the image column.

Breaking change?

  • Yes
  • No

Additional context

@xelaint
xelaint requested a review from a team as a code owner July 27, 2026 18:08
@xelaint xelaint added the package: design @daffodil/design label Jul 27, 2026
@xelaint
xelaint merged commit 49eceaa into develop Jul 27, 2026
16 checks passed
@gray-bot gray-bot mentioned this pull request Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: design @daffodil/design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant