Fix buttons taking up space when invisible