Another day, another challenge. CSS is not my forte, oh dear.
I'm attempting to adjust the width of a dropdown in react-bootstrap. Here's what I tried:
<NavDropdown style={{width: "5vw"}} title="User" id="navbarScrollingDropdown">
{/* ... */}
</NavDropdown>
I thought this would solve the issue, but it ended up messing up the title. Is there a way to change the width of the dropdown without causing issues with the title?
Nodejs version: 16.9.1
npm version: 7.24
bootstrap version: 5.1.1
react-bootstrap version: 2.0.0-rc.0
react version: 17.0.2