Fix Sidebar Gap

This seems to fix #9248, but I'm not quite sure what that code was for (FWIW, it was introduced in 04848ee0a5727d43bd934203f53d9332b2eb8b78) and if anything relies on it.