streamlit-on-Hover-tabs (for custom navigation bar)

So the solution:

Replace:

 section[data-testid='stSidebar'] > div:nth-of-type(1) {
    background-color: #111;
}

with this:

section[data-testid='stSidebar']{

    background-color: #111;
    min-width:unset !important;
    max-width: unset !important; /*<--- This part is optional.*/
    width: unset !important;
    flex-shrink: unset !important; /*<--- This part is optional.*/
    
}
`