microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
47 stars 45 forks source link

Restore support for long option labels #208

Closed Joshua-Barclay closed 1 year ago

Joshua-Barclay commented 2 years ago

Hello,

https://github.com/microsoft/vsts-extension-multivalue-control/commit/5b6720e189b1b8c6ae08b1068b72a65d65907364 The recent change for "Multiline support" has implemented a force truncation at 35 characters. Whilst this fixes some issues we've had with line-wrap, it has introduced an issue that we can't work around with long options.

We have a multivalue control with many long options (>100 characters). To fix line wrap issues we put the control on the main page of the component, which displayed well as there was adequate room on the page to not wrap the lines.

With the new change the long items are being wrapped even though there is more than enough room to fit them on the page: image

Reverting the change to automatically truncate would fix this issue for our existing items, but a preferable option would be to allow us to configure the truncation length for each fields.

madkoo commented 2 years ago

Thanks for the feedback. I will put this issue on our internal tracking board so the product owner can prioritize it. You are always welcome to create a pull request your self to improve the extension.