Fix overflow handling in sidebar navigation