Fix overflow handling for sidebar and content.