Closed ghost closed 3 years ago
👋 thanks @akiekintveld for the contribution!
Currently, this will overflow with long locations.
What do you think about truncating the long text with some CSS? We could do something like this in LabeledItem
:
<div style={{ maxWidth: '50ch', textOverflow: 'ellipsis', overflow: 'hidden' }}>
{this.props.children}
</div>
A double click/copy/paste (or a click on the link if starts with https
) preserves the entire field.
Oh, weird, when I tested it out (in Safari 14, Chrome 85, and Firefox 81), it was wrapping the text, which looked fine. I also like how the ellipses look though, seems to work well (had to add whiteSpace: 'nowrap'
as well otherwise it kept wrapping).
I see there's a check expected before this can be merged, do I need to do something to get that to run?
Fixed in #187
Deployed!
Closes #185.