Skip to main content

LAUNCHED: Min and Max Width for Auto Layout


Show first post

94 replies

AlicePackard

great news folks, figma appears to be working on this feature! a release date is unknown, nor can it be promised. only time will tell.

twitter.com

Geraldo_Pena

There are so many advanced features in Figma, and I love it for that. I really wonder how or why have Figma peeps forgotten about including min-width or max-width settings for frames or other elements.

This constitutes one of the most sought-after and overlooked inclusions for the software and it is incredible we have auto-layouts, but not a proper way to set minimum width or maximum width.

It seems like working with duplicates of the same work is the norm when it comes to UX and UI. I know we have components, but even so, I don’t see practical having a gazillion instances of a component just to convey an use case.

Please Figma, PLEEEAAAAAASSSEEEEE, for the love of god, include min-width and max-width in your feature development pipeline.


A.J_Kandy
  • 3 replies
  • February 22, 2023

Absolutely. Being able to create grids and layouts with behaviour that directly follows CSS Grid / Flexbox would be HUGE.

99% of my layouts involve grids and tables, and autolayout as currently implemented is not suitable for this; you end up having to do a lot of janky manual resizing to make even-sized columns.

And related to this topic, being able to set text box min and max-width using the ch unit would be really good to help with readability - using the heuristic that text should be between 45-75 characters per line.


Brandon_Spencer

I use this trick for min height and width. Create an invisible line and set the length and then you can set the parent container to hug.


Dom2
  • 1 reply
  • March 14, 2023

@Figma_Support, please can this be implemented as soon as…


Alex_Wright

Yes!! This would be so incredible!


Kevin_Hannon

I vote a big “YES” for Min/Max values! Please make this a reality ASAP, thank you! ❤️


Franciny_Morales

Set a minimum or maximum height or width for the components. To be able to adjust the component by setting a requirement that it cannot exceed a certain size.


Matthew_Vella

+1 for min/max width please. This will be so helpful for responsive designs and developer handoff


Florian_Riviere

Yes !!! +1 too


Florian_Riviere

And this line break in the auto layout part 🫣


Vincent. I made the min width work in a couple different ways using the hidden line. In the case of a button with an icon (and all non-2 action) set the line as its own frame under the frame that contains the text and icon.


Regina_Casaleggio

Figma has made a lot of progress in making the design/dev handoff easier and bring design and/dev closer than ever before. Having min/max width and height would be another step closer.
My use case at the moment is for min-heights on things like buttons, inputs etc That way I don’t have to rely on line-height and top/bottom padding to get the desired height and still have a button text that can wrap.


NorItu
  • 2 replies
  • June 30, 2023

You got what you wanted in the end <3


dvaliao
Figmate
  • Community Support
  • 4664 replies
  • July 3, 2023

When it will be launched?


xDlab_Biettron_Laurent

Hi. I have a component made of a frame containing frames containing texts. If, in this component, I set a max with for the top frame, I can change or remove it in the component instances. But I cannot change or remove max width for the nested layers in the instances… Shouldn’t this be possible?


  • 2 replies
  • August 7, 2023

Does anyone know if this is a bug?

I am able to set min and max height for components. When I use the scale tool (double and single arrow versions of scaling), the min is respected, but the max is changeable - i.e. i can increase the size of the instance when scaling. I would like to prevent that so our components don’t exceed the intended size. Thanks!


Silver
  • New Participant
  • 9 replies
  • August 29, 2023

Variants with interactions seem to remove/ignore min-max values in instances? If min-max is applied to instance, then after interaction it loses the min-max. When interacting back to the initial state, min-max is back! But it should retain min-max in every variant/state. State management options in interaction panel doesn’t seem to affect the behaviour.


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