So i need to always have my width to 100%, except when max-content is longer.
width: max(100%, max-content);
Something like that but isn't working
You can try this
width : max-content; min-width: 100%;