fix navbar buttons when resizing from desktop to mobile (bug 1063116)