[sidebar] fix weirdness when transitioning to tablet media