Skip to main content

LAUNCHED: Wrap elements in Auto Layout to multiple lines


Show first post

254 replies

Luca9
  • 3 replies
  • June 22, 2022

I do believe that Figma should match HTML 100%, the way that Webflow does, by fully supporting CSS grid + Flexbox functionality, for at least two reasons:

  1. CSS Grid/Flexbox properties have been designed with maximum layout flexibility in mind, and they’ve been a god-sent since then.
  2. This would further reduce the gap between design and front-end development.

That said, I imagine this may not be an easy challenge for the Figma enginnering team. In a Nov 2020 post, they explain that autolayout was inspired by Flexbox, but after some testing, they decided to chose a compromise between a perfect match with Flexbox, and making it easy for people to use. It’s also to note that for optimal layouts, CSSs may need custom manipulations that go beyond a simple application of CSS grid/Flexbox techniques.


Yordanka_Katzarova

+1 from Bulgaria 🙂 the wrapping feature will solve so many problems


Matthew_Carlstrom

This plugin works well in a main component. but it pretty unreliable with overall auto-layout in variants.


Matt_Sweet

+1 for this feature


Anthony_McQuaid

+1 for auto-layout content wrapping. This would be huge!


Ryder_Booth2

+1 make the auto layout that much more magical… please!


Mantas_Milkintas

Yes please! +1


Jenni_Merrifield

omg, yes, please - if I could vote on an idea more than once I would seriously consider adding half my remaining votes to it.

I don’t actually think that the full capabilities of flex box would require too much complexity if some of the options are in the main UI and others are in the advanced menu where you can currently choose between packed/distributed, include/exclude borders, first/last on top stacking order and text baseline.

I’d put the following directly on the properties panel:

  • horizontal and vertical z-wrap options (as others have described above)
  • a field for the number of columns/rows along the horizontal/vertical

When the the horizontal/vertical resize of the container is “fixed”, contained items - which can have any resize option - are automatically wrapped at the specified number of columns/rows,

When the horizontal/vertical resize is set to “fill” and the advanced “Spacing mode” setting is “Packed” the same number is used and all contained items are set to “fill”. If the resize is still fill and spacing mode is changed to “Space between” then column/row count switches to “Auto” and the wrap is based on the width/height of the container frame and the width/height of the contained items. In this latter case, items set to “fill” will always fill up what remains of the width/height of the current row/column, forcing the next item into the following row/column. This does mean that if all items are set to “fill” the result devolves to a single column/row but that’s okay because, if the user wants them to be in multiple columns/rows they just have to switch back to the “Packed” spacing mode.

“justify-content” and “align-content” values are handled by the existing alignment square.

“row-gap” and “column-gap” are handled by showing both the horizontal and vertical “spacing between items” elements

“align-items” is on the advanced panel and only enabled when the horizontal or vertical z-wrap is selected. For the horizontal z-wrap, it uses the same three icons as text does for vertical alignment. For the vertical z-wrap, it uses the same icons as text does for horizontal alignment.


Needs to happen @Figma_Support


Kevin35
  • 1 reply
  • July 27, 2022

wen integration?


Patrick_Raabe

cmon guys, u can do it! 🙂 🙂


Arash
  • 1 reply
  • July 29, 2022

+1 please, much needed feature


Brian_Bailey

+1 Figma is so feature-rich that I was surprised auto-layout didn’t work like CSS Flexbox / Grid


B116
  • 1 reply
  • August 2, 2022

How is this not a thing yet?! Doesn’t everyone run into this problem every time they use auto layout?


mtri
  • 5 replies
  • August 2, 2022

+1 this would be great


Maggie4
  • 1 reply
  • August 2, 2022

+1 super time saver


6428MS
  • 1 reply
  • August 6, 2022

+1 we need it @Figma_Support I just not understand why it have not been been added in Figma 2022 updayte but it’s okay


Ryan_Palm

+1 on this feature. Having something like this would be a game changer.


ThomasMirnig

+1 — wrapping functionality would be awesome!


James_Wilson

+1 — agree 1000%. This is a key feature for creating fluid responsive components in figma.


JordanLipchev

+1, we need this key feature a lot.


Fractal_HQ

Flex-wrap is a staple of any modern web design. This is desperately needed!


Mike_Bucks

+1 we need this.


Matt_Chadbourne

+1 Please provide this!! This should have been one of the first features of Auto Layout!!


Lau_Martinez

+1!! Much needed


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