-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Discover] Selecting a number with a short value covers the field entirely #133739
Comments
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@andreadelrio @constancecchen Would it be possible to improve multi-line cells rendering in EUI grid when values are short? |
Pinging @elastic/eui-design (EUI) |
I'm removed this from our |
Due to the flexible nature of the data grid cells and their contents, I'm thinking that any design that has these cell action buttons sharing the space with the cell contents is going to be problematic. @majagrubic's and @jughosta's screenshots above shows how it can be problematic in situations where right-aligned cell contents can be covered in non-single-line instances. However, it's also problematic in situations when the user has narrowed their data grid column width (which potentially covers cell contents, truncates cell contents, or causes the action buttons to be cut off). I think the best path forward to address all these cases would be to change the placement of these cell action buttons to be displayed outside of the target cell's content area. For example, here's a quick rough mockup of what I'm thinking: We could also account for overly narrow columns by not forcing the actions below to adhere to the width of the target cell. In this way, the cell being focused/targeted will never having its own contents obscured by its related actions. Thoughts? |
@MichaelMarcialis I much prefer your proposal over the current cell actions! 🙌 I think this would address most if not all of the complaints with the current design. Just two points of feedback:
|
Example of the "tall cell" problem Davis mentioned above: #133739 Definitely better than covering the entire text for sure 😅 but maybe top alignment for those cell heights makes more sense? |
Sorry, hit enter too soon. To your second bullet point, here's the relevant EUI issue: elastic/eui#5828 (FWIW, I strongly prefer Michael's suggestion in here over Caroline's!). Up to you all if you'd prefer to close all the linked Kibana issues and consolidate them in one place |
@davismcphee, @cee-chen: Good call on the tall cell heights. I think moving the offset actions to the top makes sense given that possibility. We can probably also align the actions left or right depending on the cell contents as well (ensuring the actions are always in close proximity to the cell contents). I'll copy/paste my notes from here into the EUI issue that Cee shared. |
This should be resolved by #173569! |
Kibana version:
8.3.0
Elasticsearch version:
8.3.0
Server OS version:
Browser version:
Chrome 101
Browser OS version:
Mac OSX
Original install method (e.g. download page, yum, from source, etc.):
Cloud
Describe the bug:
I believe this is a EUI bug, but given I don't have time for a detailed debugging, hope you can pass it on to the appropriate place.
When selecting a numeric field with a short value, the field is covered entirely by cell controls. This is confusing as I can't see the field value anymore.
Steps to reproduce:
Expected behavior:
The field value should be visible.
The text was updated successfully, but these errors were encountered: