How to define flex-1 as max-width?