Skip to main content
Cody_Porter
New Member
January 22, 2021

LAUNCHED: Min and Max Width for Auto Layout

  • January 22, 2021
  • 95 replies
  • 65554 views

I would like to add a max-width to a text box while using auto layout to keep the word count per line at a reasonable minimum.

Currently, I have the text element set to “Fill Container” which makes the text respond very nicely to the screen size. But because it is set to “Fill Container”, the text spans the entire width of the element which makes the text lines more difficult for users to read quickly.

If a max-width was set, the component should respond until it reaches the max-width, which would help keep the line length down.

I also feel like there are many other circumstances where max and min-width would be extremely helpful

Anyone else having this issue? Or does anyone have a great fix/hack to get around it?

Looking forward to seeing what you have to say.

Cheers,

95 replies

Christian_Vasile
October 27, 2022

+1 for max width!

Kevin_Mackin
November 9, 2022

Here’s my idea for how this could be implemented into the UI on the side nav

image

Michael_Blancon_Tardi
November 16, 2022

I love you! Thx for the tips

pkp
November 21, 2022

+1

We have buttons which should have a min width of 100px & height of 36px, most of the time this will be met but in some cases when the text is small eg: Save or OK, the button will shrink down too small and adding an invisible line will only mess with the height. This will also confuse developers in handoff where the whole design will be full of hacks. So I think this is a small ask.

Dmitry_Lyapustin
November 26, 2022

+N from my team. Should be there!

JhanaC
December 7, 2022

++ would be very helpful, run into this frequently

vdekkernl
Active Member
December 16, 2022

I want this tonight!

mtartaglia
January 4, 2023

+1, would help with Design System building 🙂

Cody_Marshall
January 26, 2023

+1 - This is a huge barrier in design system component creation/documentation

February 3, 2023

+1
Now that we have figma to webflow plugin this would be so so useful.