Skip to main content
mith sams
New Participant
Nov 1, 2026 4:14 AM UTC
Question

How can I stop cards from stretching unevenly in a wrapping auto layout row?

Hi everyone, I am working on a simple card grid for a dashboard and I am stuck on how auto layout handles wrapping rows. I have a horizontal auto layout frame set to wrap, with several card components inside it. Each card has a title and a short description, but the descriptions are different lengths. When the cards wrap onto a new row, some cards stretch taller or wider than the others in the same row, so the grid looks uneven. What I have tried so far: setting the cards to a fixed width and fixed height, which keeps them even but cuts off longer text; setting the cards to hug contents, which fits the text but makes every card a different size; and changing the alignment and spacing on the parent frame, which did not stop the uneven stretching. Is there a recommended way to keep cards in a wrapping auto layout row the same size, while still letting the text wrap inside them? Or is this a case where I should use a different layout approach for the grid? Thanks in advance for any tips.

2 replies

NeoTang
New Member
Nov 2, 2026 1:46 PM UTC

Yeah this is a known wrap Auto Layout limitation — Figma won’t stretch siblings to the tallest card in that row the way CSS flex/grid does.

What usually works for me:
- Fixed (or Fill + min/max) width on each card so columns stay even
- Fixed height on the card if the grid must look uniform, with Truncate text on the description
- ​Or hug height and accept uneven rows for true content-driven layouts

If you need equal height per row that still hugs when a card sits alone, that still isn’t supported natively — a lot of people document fixed heights for handoff instead. Invisible zero-height placeholder cards can help equalize widths on wrap, but height-per-row is still manual.

Mrlaura
New Member
Nov 4, 2026 8:51 AM UTC

I think Grid Auto Layout might be a better fit here than Horizontal Auto Layout with Wrap, especially since you're building a dashboard rather than a collection of independently sized items.

I'd try this structure:

  1. Change the parent frame's auto layout flow to Grid.

  2. Set a specific number of columns, with each column using Fill container (1fr), so the cards have equal widths.

  3. Leave the number of rows on Auto, and use Hug contents for row height.

  4. Set each card to Fill container within its grid cell, including vertically.

  5. Inside each card, keep a vertical auto layout, with the text layers set to Fill container for width and allowed to grow vertically.

That should let descriptions wrap naturally while keeping the cards aligned within each row. The tallest card determines the row's required height, and the other cards can fill that height.

There's one distinction worth making, though: equal height within a row isn't necessarily the same as identical height across the entire grid. If every card must have exactly the same height regardless of content, you'd need to choose a common height and either limit the description length or allow for a different overflow treatment.

I wouldn't use a fixed text height just to make the layout look even, since that tends to hide content.

Figma's Grid Auto Layout documentation covers the row and column sizing controls:
https://help.figma.com/hc/en-us/articles/31289469907863-Use-the-grid-auto-layout-flow

Are you aiming for equal-height cards within each row, or for every card in the dashboard to have exactly the same height?