Fix header shift issue on transition from small screens.