-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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] Improve Doc viewer #107869
[Discover] Improve Doc viewer #107869
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theres's one thing about setting the table layout to auto, when e.g. a single filename is very long, the whole fields column consumes much space. so I wonder if there's e.g. a way to limit the column width to a max of 50%? cc @ryankeairns
@elasticmachine merge upstream |
dear @andreadelrio & @ryankeairns what's your opinion here, should we auto-layout the table like it was before we switched to the EUI component? many thx! |
@kertal my apologies. I started poking around at this yesterday and got sidetracked. This is a tough one. While I see your point, I'm not certain how well an arbitrary max will solve the issue. There are so many unknowns at play with what people's data will look like and this feels like we're potentially making a 'quick fix' based on sample data. I'm inclined to not add anything and let it flow naturally. Is there further context I'm missing here? |
no worries, I'm fine with that just keeping it |
@elasticmachine merge upstream |
src/plugins/discover/public/application/components/table/table.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/components/table/table_cell_actions.tsx
Show resolved
Hide resolved
src/plugins/discover/public/application/components/table/table_cell_actions.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/components/table/table_cell_value.tsx
Show resolved
Hide resolved
src/plugins/discover/public/application/components/table/table_cell_value.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM 👍 will test it tomorrow morning
src/plugins/discover/public/application/components/table/table.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, tested locally in Chrome, Firefox, Safari, works as expected, thx for those adaptations 👍
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @dmitriynj |
* [Discover] fix doc-vewer * [Discover] remove redundant stuff * [Discover] remove redundant i18n * [Discover] remove unused translation * [Discover] fix by comments * [Discover] clean up remaining things Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* [Discover] fix doc-vewer * [Discover] remove redundant stuff * [Discover] remove redundant i18n * [Discover] remove unused translation * [Discover] fix by comments * [Discover] clean up remaining things Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
Summary
This PR fixes issues, missed in previous one:
auto
layout, which changes column width on resize, see video below;display: none;
rules, see picture below;Redundant DOM nodes
Auto layout
doc_viewer.mp4
Checklist