truncate large legend labels
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run

Closes #3813
This commit is contained in:
Francis Cao 2025-12-02 14:44:10 -08:00
parent e7cb613cec
commit b0f38b266b

View file

@ -22,7 +22,12 @@ export function Legend({
return (
<Row key={text} onClick={() => onClick(item)}>
<StatusLight color={color.alpha(color.alpha() + 0.2).toHex()}>
<Text size="2" color={hidden ? 'disabled' : undefined} wrap="nowrap">
<Text
size="2"
color={hidden ? 'disabled' : undefined}
truncate={true}
style={{ maxWidth: '300px' }}
>
{text}
</Text>
</StatusLight>