@@ -56,21 +56,21 @@ const Dropdown = ({
5656 </ SelectLabel >
5757 < Select
5858 className = { classNames (
59- 'flex w-full min-w-55 items-center justify-between rounded border border-passive-3 bg-default px-3.5 py-1.5 text-sm text-foreground md:translucent-ui:bg-transparent' ,
59+ 'flex w-full min-w-55 max-w-full items-center justify-between rounded border border-passive-3 bg-default px-3.5 py-1.5 text-sm text-foreground md:translucent-ui:bg-transparent' ,
6060 disabled && 'opacity-50' ,
6161 classNameOverride . button ,
6262 ! fullWidth && 'md:w-fit' ,
6363 ) }
6464 store = { select }
6565 disabled = { disabled }
6666 >
67- < div className = "flex items-center" >
67+ < div className = "flex min-w-0 items-center overflow-hidden " >
6868 { currentItem ?. icon ? (
69- < div className = "mr-2 flex" >
69+ < div className = "mr-2 flex shrink-0 " >
7070 < Icon type = { currentItem . icon } className = { currentItem . iconClassName ?? '' } size = "small" />
7171 </ div >
7272 ) : null }
73- < div className = "text-base lg:text-sm" > { currentItem ?. label } </ div >
73+ < div className = "truncate text-base lg:text-sm" > { currentItem ?. label } </ div >
7474 </ div >
7575 < Icon type = "chevron-down" size = "normal" className = { isExpanded ? 'rotate-180' : '' } />
7676 </ Select >
@@ -84,17 +84,17 @@ const Dropdown = ({
8484 >
8585 { items . map ( ( item ) => (
8686 < SelectItem
87- className = "group flex cursor-pointer items-center bg-transparent px-3 py-1.5 text-sm text-text hover:bg-contrast hover:text-foreground [&[data-active-item]]:bg-info [&[data-active-item]]:text-info-contrast"
87+ className = "group flex min-w-0 cursor-pointer items-center overflow-hidden bg-transparent px-3 py-1.5 text-sm text-text hover:bg-contrast hover:text-foreground [&[data-active-item]]:bg-info [&[data-active-item]]:text-info-contrast"
8888 key = { item . value }
8989 value = { item . value }
9090 disabled = { item . disabled }
9191 >
9292 { item . icon ? (
93- < div className = "mr-3 flex" >
93+ < div className = "mr-3 flex shrink-0 " >
9494 < Icon type = { item . icon } className = { item . iconClassName ?? '' } size = "small" />
9595 </ div >
9696 ) : null }
97- < div className = "text-base lg:text-sm" > { item . label } </ div >
97+ < div className = "truncate text-base lg:text-sm" > { item . label } </ div >
9898 </ SelectItem >
9999 ) ) }
100100 </ SelectPopover >
0 commit comments