Skip to content

Commit

Permalink
make text full width
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Jul 9, 2024
1 parent 66f838a commit 25fcf8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const SelectInner = <T extends Option, V extends Option | string>(
size={convertSizeToScale(size)}
color={labelColor}
title={selectedItem?.label}
width="100%"
>
{selectedItem?.label}
</Text>
Expand Down Expand Up @@ -194,7 +195,9 @@ const SelectInner = <T extends Option, V extends Option | string>(
active={highlightedIndex === index}
>
{item?.startAdornment}
<Text size={getListTextSize(size)}>{item.label}</Text>
<Text size={getListTextSize(size)} width="100%">
{item.label}
</Text>
{item?.endAdornment}
</List.Item>
))}
Expand Down

0 comments on commit 25fcf8c

Please sign in to comment.