Improved navigation-bar layout configuration.

Previous code was hiding just the <input> and this didn't hid the button, which is a <label>.