Web:Components:DropDownItem: add min width

This commit is contained in:
Timofey Boyko 2023-06-16 11:54:30 +03:00
parent 00c4893939
commit cdc3654233

View File

@ -39,6 +39,11 @@ const StyledDropdownItem = styled.div`
display: ${(props) => (props.textOverflow ? "block" : "flex")};
width: ${(props) => props.theme.dropDownItem.width};
max-width: ${(props) => props.theme.dropDownItem.maxWidth};
${(props) =>
props.minWidth &&
css`
min-width: ${props.minWidth};
`};
border: ${(props) => props.theme.dropDownItem.border};
cursor: pointer;
margin: ${(props) => props.theme.dropDownItem.margin};