Fix header width and footer length at mobile portrait displays.