Fix condition for displaying sidebar.
Fix sidebar on small screens.