When creating a custom dropdown, I've noticed that long text in the list overlaps with my dropdown icon. Here is how it looks with short text:
https://i.sstatic.net/upieZ.png
And here is how it appears with long text:
https://i.sstatic.net/Og7IM.png
Is there a way to hide extra text when it gets too close to the icon? You can find the full code in this sandbox: https://codesandbox.io/s/recursing-cloud-c6oxc
const DropdownDisplayUI = styled.div`
color: #3d4671;
position: relative;
background: #dbeaf4;
width: 140px;
height: 35px;
box-sizing: border-box;
cursor: pointer;
border-radius: 2px;
font: 15px/19px Source Sans Pro;
margin-top: 5px;
padding: 8px 7px 8px 10px;
`;