Skip to content

Commit

Permalink
ui(select): add word wrap to long items
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Mar 25, 2024
1 parent 87db212 commit 27882ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ export const Select: React.FC<SelectProps> = ({
<RadixSelect.Content>
{options.map((option) => {
return (
<RadixSelect.Item key={option} value={option}>
<RadixSelect.Item
key={option}
value={option}
style={{ overflow: "auto", overflowWrap: "anywhere" }}
>
{option}
</RadixSelect.Item>
);
Expand Down

0 comments on commit 27882ba

Please sign in to comment.