Legend width shouldn't be hard-coded

The legend width is hard coded to 150px. This causes problems for entries with long names and is compounded with long lists of entries by the scroll bar. While I appreciate that it should have an upper and lower bound, it shouldn't be hard coded. It seems the current value was set to lock the width of the colour palette. I would replace width: 150px; (kibana/src/ui/public/vislib/styles/_legend.less line 44) with

min-width: 150px;
max-width: 250px;

Feel free to suggest different values for min and max width if you think these are wrong.

hi @bh9,

these type of improvements are better logged in the Kibana repo. https://github.com/elastic/kibana/issues/new.

Or, better yet, since you are already suggesting a resolution, I'd recommend submitting a pull request for this. Your fix then becomes part of the Kibana commit-history with your name on it. Guidelines for submitting PRs can be found here: https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md.

OK, will do, last time I made an issue, I was directed here instead so I thought I'd try here first

Update: issue is here: https://github.com/elastic/kibana/issues/13813

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.