-
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] Fix JSON view height in DocViewer #183468
Conversation
/ci |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
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.
LGTM, thx for the quick fix. Tested locally, works as expected now
One note, that's not blocking but for future iterations. the new margin bottom makes sense for the flyout, but adds redundant padding for the doc view page. Something to consider, because the height calculation might make sense to re-use when migrating the table to EuiDataGrid.
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @jughosta |
- A fix after https://github.com/elastic/kibana/pull/180370/files#diff-ed350967c6564d64f0123a2d55700b1ddc7f5d6fcb3786384fb7ae25334fe9eaL672 ## Summary This PR fixes the height of JSON block in DocViewer. ~Also it reduces the available height as the flyout now has a footer with Close button.~ (cherry picked from commit 994b8c2)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.14`: - [[Discover] Fix JSON view height in DocViewer (#183468)](#183468) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-05-15T11:06:24Z","message":"[Discover] Fix JSON view height in DocViewer (#183468)\n\n- A fix after\r\nhttps://github.com//pull/180370/files#diff-ed350967c6564d64f0123a2d55700b1ddc7f5d6fcb3786384fb7ae25334fe9eaL672\r\n\r\n## Summary\r\n\r\nThis PR fixes the height of JSON block in DocViewer. ~Also it reduces\r\nthe available height as the flyout now has a footer with Close button.~","sha":"994b8c2beab211e15facff3eec3676d8e96bcbea","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","Team:DataDiscovery","backport:prev-minor","Feature:UnifiedDocViewer","v8.15.0"],"title":"[Discover] Fix JSON view height in DocViewer","number":183468,"url":"https://github.com/elastic/kibana/pull/183468","mergeCommit":{"message":"[Discover] Fix JSON view height in DocViewer (#183468)\n\n- A fix after\r\nhttps://github.com//pull/180370/files#diff-ed350967c6564d64f0123a2d55700b1ddc7f5d6fcb3786384fb7ae25334fe9eaL672\r\n\r\n## Summary\r\n\r\nThis PR fixes the height of JSON block in DocViewer. ~Also it reduces\r\nthe available height as the flyout now has a footer with Close button.~","sha":"994b8c2beab211e15facff3eec3676d8e96bcbea"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/183468","number":183468,"mergeCommit":{"message":"[Discover] Fix JSON view height in DocViewer (#183468)\n\n- A fix after\r\nhttps://github.com//pull/180370/files#diff-ed350967c6564d64f0123a2d55700b1ddc7f5d6fcb3786384fb7ae25334fe9eaL672\r\n\r\n## Summary\r\n\r\nThis PR fixes the height of JSON block in DocViewer. ~Also it reduces\r\nthe available height as the flyout now has a footer with Close button.~","sha":"994b8c2beab211e15facff3eec3676d8e96bcbea"}}]}] BACKPORT--> Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
Summary
This PR fixes the height of JSON block in DocViewer.
Also it reduces the available height as the flyout now has a footer with Close button.