Fix close X on sheet
Fix quirks with show/hide on the search bar

This is a small consistency improvement which ensures that whenever the
search is cleared the input becomes invisible. Previously, this only
worked correctly on the sidebar.