elastic-charts
elastic-charts copied to clipboard
[metric] Medium and long text in metric is cut
Lens issue: https://github.com/elastic/kibana/issues/169505#issuecomment-1774865360
While the secondary metric can go multiline, the primary metric has a no-wrap
policy for the CSS white-space property.
I've tried to quickly check what would happen without that nowrap
thing but it introduces other issues:
Originally posted by @dej611 in https://github.com/elastic/kibana/issues/169258#issuecomment-1774667358
Given the nature of the secondary metric it was easier to expect that it could go on multiple lines, it is also way smaller and then way more easy to deal with. At the same time this is an interesting conversation to have because introducing text might make worth to talk about multi-lines for values/strings as well. Thank you for pointing this out!
Originally posted by @gvnmagni in https://github.com/elastic/kibana/issues/169258#issuecomment-1774673724
Related to https://github.com/elastic/elastic-charts/issues/2306
@gvnmagni do you think we can close this considering the work done on #2306? It doesn't fully solve this problem in some cases but there is no much that we can do I believe
I feel the same, given the complexity of the wrapping logics I feel that fit
and custom
modes introduced with the update solve the problem, at least for now.
Great, closing for now