Fix issue with hidden sidebar when leaving mobile view