adjusts column widths by device type