-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiComboBox] Allow dropdown to expand to not truncate options #2082
Comments
Took some time to look into this. Complications
Solution requirements
Proof of conceptI don't particularly like this approach, but wasn't able to come up with anything different. I also didn't try to reconcile the current
Changes can be viewed at master...chandlerprall:feature/expanding-combobox-dropdown |
My thoughts: A. I don't think it's ok to expand the dropdown's width indefinitely. There will be many issues that will arise from this including going completely off screen. B. That being said we could give it a default max-width of 400px allowing the dropdown to grow to 400px even if the input is narrower. C. However, that would mean we need to change some styles of the dropdown quite a bit and would want to consider centering the dropdown to the input. Something like, but not enamored by: |
since this is coming in frequently from different sources, solving this would be great. at least it the max width should be configureable, would also help. many thanks |
Any updates on this by any chance? |
@cchaos what about something like this? |
Yeah I've mostly dropped the ball on this because it's actually a harder problem to solve than it seems on the surface. @lizozom We'll make sure a solution is done in this minor (7.11) |
@chandlerprall I think one issue with that solution could be that it requires "looking with your mouse", instead of your eyes. To get a sense for how that could be a frustrating UX, consider the screenshot in the description but with many fields that share the same stem, e.g. |
We're currently looking into a solution that would allow the option labels to wrap, but hinders on the ability from the plugin we use for virtualization. Otherwise a couple solutions we'll also look into are:
Most of the solutions will be opt-in, meaning there will still need to be follow up by Kibana. Another piece of this will be that the field selector in Kibana should just be full width of the containing popover instead of 50% and/or extend the width of that popover. |
I got another request from a customer about this issue, they are struggling with selecting the right index pattern in discover. Their index pattern have long names that get truncated. I can't share the screenshot since it contains sensitive information |
With elastic/kibana#85320 merged, this is no longer urgent, but I'm still leaving open in hopes we can find a solution during a refactor to using EuiSelectable. |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
Still seems like an issue users will run into, so worth keeping this open? |
@cchaos I like the options you suggested of either middle truncation or expanded popover width. Were you suggesting that the combo box should support both options, or that we should pick one as the preferred solution? Would this be something open to a contribution from Lens? We recently ran into this in the Lens field list: elastic/kibana#103701 |
Small note that elastic/kibana#106285 implemented some logic within Lens for this. We might want to consider building this in directly through a |
Closing this as not-planned and in favor of #5997 |
#7246 Introduces a |
This would solve the problem documented in elastic/kibana#36409
The text was updated successfully, but these errors were encountered: