storybook-design-token icon indicating copy to clipboard operation
storybook-design-token copied to clipboard

LineHeight presenter preview issues with big numbers

Open lesyk-lesyk opened this issue 2 years ago • 2 comments

Seems like rows for @presenter LineHeight should have dynamic height to fit all 3 Lorem ipsum... lines with different line-height:

image

lesyk-lesyk avatar May 14 '22 11:05 lesyk-lesyk

Thanks for reporting. Should be fixed with v2.6.0.

Sqrrl avatar Jun 28 '22 12:06 Sqrrl

It seems haven't fixed yet. https://github.com/UX-and-I/storybook-design-token/blob/v3/addon/src/components/TokenTable.tsx I reckon leveraging virtualRow.measureRef as ref on tr should help. Now all rows are equal to its estimatedSize which is 49px

FunkJoke avatar Jan 04 '24 13:01 FunkJoke