Skip to main content

We really need "fill" or "100%" option to set max-width and max-height!

  • April 4, 2025
  • 7 replies
  • 856 views

Michel Araújo

Hey guys! I'm a product designer and a Figma lover. For along of those years, I saw Figma grown up and become even better, bringing to us designers a lot of new possibilities to work. But this is my first time that I want to request a feature ASAP, since creates a lot of pain. Hope everyone see this topic as something really useful too.

So, I usually works on web applications and thus I need to design both mobile, tablet and desktop version of the web pages.

And, when we speak about Design System, we need to make sure that our components will adapt on each screen, no matter the viewport size.

So, bringing this discussion to a real case: I made a component for my DS called “chip” with some variants as we can see on this print:

 The width’s component need to follow their inner content to keep growing on the sides as we can see:

but this growing effect (which is possible glad the ‘hug’) need to stop when reach the max width from the chip’s parent container and this, Figma can’t help me. So, the chip should grow to accommodate the text in width, up to a maximum determined by its parent, and then it should start growing downwards in height.

 

 I’ve tried a lot of things to simulate this behavior, creating equations and math to calculate the max-width based on the div/container where this chip are but none of the solutions really solves this issue. And I have problems like this:

 

Am I the only one suffering from this? Has anyone figured out how to get around this?

7 replies

SteffMueller
  • New Participant
  • April 9, 2025

+1
It will help greatly with auto-layouting elements that will sit next to each other.
 

Typical example is the cursor in an input field:

  • I want to have my text-value set to hug, so that the cursor next to it will follow the entered input (great in prototyping)
  • But also I want to set the max-width of the text-value to “fill” so that a value will not overflow the constraining box.
  • This is particularly tricky, if the input-element is fluid in witdh size. (otherwise I could just set a fixed max-width)

Dario1
  • New Participant
  • July 16, 2025

It’s straight forward to prototype the layout in a browser but I am also failing at finding a way in Figma that does not require to manually override the component instances layout to achieve the arrangement I am looking for, which in CSS is expressed something like:

max-width: 100%; 
width: fit-content;

 


Vermeulen_Peter

Yes, really need this as well. 

I have multiple components where I have a label with ellipsis overflow. When choosing for a ‘fill’ width, the ellipsis works perfect. But when I have an object (like a badge or tag) which is aligned with the label content, I have to set the label to ‘hug content’, but I cannot set a max-width 100% on the container. Very unfortunate.

For example:

 


Ankit Kaushik
  • New Member
  • September 16, 2025

This is not just better but a vital part to responsive designing. This demands attention and need to considered asap.


Debruyn_Tom_T

Please add this functionality.


ElsEarle
  • New Member
  • October 20, 2025

This is not just better but a vital part to responsive designing. This demands attention and need to considered asap.

I felt like I was dumb for so long because I could not for the life of me figure out how to get an inline tooltip to hug the last word of a block of text, and wrap WITH the tooltip when it overflowed the width of the parent frame. Am I correct in assuming that functionality for the above would also theoretically allow for this behaviour?


Marek2
  • New Member
  • November 30, 2025

Cannot agree enough!
I should have googled this in the forum instead of wasting hours to find a way for this to get it work.

Figma aims for seamless integration with developers and they take good money from our developers, too for Dev-Mode. But if you look deep enough, there are many cases where figma has less or different capabilities compared to the platforms it tries to “align” with and that is where I need to make a decision:

Shall I invest more time? How deep do I really want to align with code or shall I just describe the expected behaviour as a text with pictures (this can easily take place outside figma, dear Figma company :-)