How to adjust fields according to max form width