Fix history sidebar for small screens