Fixed shrinking problem of nav search bar in dark mode