fix the flex property so it doesn't squish beyond content