Skip to main content

Set grid row height to "hug" contents


Carlos20

I was super pumped to start using grids for my layouts until I learned of one fatal flaw that killed my excitement :(  The inability to set a row height to hug is simply a deal-breaker for me.

 

Also no variables support for gaps? really?

40 replies

JérémyRoole

Yes same… we need to add a hug-content to the items


KennLucas
  • 224 replies
  • May 9, 2025

Grids are definitely half-baked. Really impossible to use and don’t really even function like they did in the demo. The no-hug thing is a huge fail, as is only having half of the settings accept variables. How is it they couldn’t do the whole job? This is so typical of Figma anymore. But hey...the price increased. So there is that.


Jim_Knox
  • Active Member
  • 31 replies
  • May 9, 2025

I'm struggling to find a use case for them. A bento is really the only thing. I need hug also


ElvinT
  • New Member
  • 3 replies
  • May 9, 2025

I was excited to use grids to approximate something basic thats been missing for SO LONG: % widths

 

Not being able to set height to hug contents is baffling to me. 

 

Please fix this Figma!


Ari_Kogan1
  • New Participant
  • 7 replies
  • May 9, 2025

Can anyone even conceive of a reason why they wouldn’t include hug? I can’t wrap my mind around this.


Ari_Kogan1
  • New Participant
  • 7 replies
  • May 9, 2025

Literally all we needed was the ability to set a child’s % width, and we’d get the benefits of grid with existing wrap functionality 🫠


Cindy_Wong1
  • New Participant
  • 8 replies
  • May 12, 2025

100%, this was the first thing I wanted to do with grids. I need it to hug contents for truly responsive design. I’ll be going back to using auto-layout until there’s a feature update for this...


Marie_Rang1
  • New Member
  • 4 replies
  • May 13, 2025

Even if you don’t need hug, having to resize the whole grid just to get a certain width and height of all the boxes? what is this shit? Takes away the whole responsiveness excitement I had for this… And of course no variables support...


Namson
  • New Participant
  • 9 replies
  • May 13, 2025

+1’d 


bart13
  • New Participant
  • 11 replies
  • May 13, 2025

i applied it to a data table - super powerfull (just populate my cell component) but indeed - missing the HUG → the logical next question however is → if one cell wraps over 2 lines - what happens with the rest of the row (you would still have to manually set all other items in the row to fill then) anyhow would be still very interesting!


jponch
  • New Participant
  • 7 replies
  • May 13, 2025

I’ll ditto what others have said here. For a long time I’ve wished Figma would add “Fit to Grid” options for width especially. I was excited about this new Grid announcement, but unfortunately it does not allow you to actually create layouts that function like a CSS grid without the hug to contents option for heights. I realize that the hug option would almost need to be assigned to rows rather than to cells.


Johnson_Ryan
  • Active Member
  • 23 replies
  • May 13, 2025
Jim_Knox wrote:

I'm struggling to find a use case for them. A bento is really the only thing. I need hug also

Data tables are the primary use case I see for grid.  It’s almost impossible to create a responsive data table component with one-dimensional auto layout.


Johnson_Ryan
  • Active Member
  • 23 replies
  • May 13, 2025
Ari_Kogan1 wrote:

Can anyone even conceive of a reason why they wouldn’t include hug? I can’t wrap my mind around this.

If I had to guess, it’s just more difficult to implement and they had a deadline.


ScottDaniels
  • New Participant
  • 14 replies
  • May 13, 2025

I blindly assumed this would be possible. I consciously noticed it wasn't shown in any of the deep dives or demos. Figma, Grid should accommodate content like equal-height columns or in masonry-type layouts. I think the reasoning to not hug vertically is due to responsive flow order. May need to add in a sort/number to each block within grid to make it work right.

 

I was at Config and there were sooo many new products but very few new features I have seen users like me request constantly in the forums. I was reallllllly hoping for % based widths.


Ali Abedi
  • New Member
  • 1 reply
  • May 15, 2025

This is so stupid Figma please add HUG for grid height. What is this….

 


Jim_Knox
  • Active Member
  • 31 replies
  • May 15, 2025
Johnson_Ryan wrote:
Jim_Knox wrote:

I'm struggling to find a use case for them. A bento is really the only thing. I need hug also

Data tables are the primary use case I see for grid.  It’s almost impossible to create a responsive data table component with one-dimensional auto layout.

yes tables, but without hug, you will be manually resizing everything row


Thomas_HELLEGOUARCH_BPCE

Simply do not release features that do not have 'Fill or Hug'. Please.

We need to manage accessibility in our mockups, right! 😉


Saquib Feroze

Use Auto Layout Vertically Instead of Row Grids

  • Create a parent frame with vertical auto layout

  • Set each “row” or section to Hug Contents

  • Control spacing with gap or padding

  • Forget Figma's visual row grid entirely

🔸 Bonus: You can still overlay a custom guide system (e.g., horizontal lines) using vector lines or helper frames if you need visual row cues.

🔧 Alternative Trick (Manual Grids with Auto Layout)

  • Use rectangles or lines as faux "grid rows" with labels

  • Nest auto-layout frames inside that respect content height

  • This gives you the visual feel of a grid with the flexibility of hugging content


Elena Darling

As the grid cannot be set to fill for width and height, it’s not truly responsive. Would love to see an update on this one to match dev grids better! 💃


Elena Darling

Ah I’m incorrect lol, I think the real update I want here is to delete my past forum replies 😂


Grant_Galtney
Carlos20 wrote:

I was super pumped to start using grids for my layouts until I learned of one fatal flaw that killed my excitement :(  The inability to set a row height to hug is simply a deal-breaker for me.

 

Also no variables support for gaps? really?

this is definitely a tablestake that should have shipped


Matthew_Ryan
  • New Participant
  • 19 replies
  • May 30, 2025

Adding my +1 for this. Until it supports hug it’s not really a useful feature.


Henrik_Andersen

They should just add the ability to set Coloumns and Rows in an Auto-layout and then we would be happy :) - oh and percentage bases padding/margin and gaps 😁

Grids are so lame and also that it defaults to grids when you add auto-layout to some older designs that are not in an autolayout.


vao433
  • 2 replies
  • June 3, 2025

I really cannot understand how this feature went out, beta or not, without this. There is virtually no practical use without it. 


innovationsraum

Still no update on this? Really bummed…


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings