elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.51k stars 8.05k forks source link

[Discover] Discover displays weird (not-aligned?) empty space when user opens a single document #187425

Closed bhavyarm closed 2 weeks ago

bhavyarm commented 3 weeks ago

Kibana version: main/8.15.0

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from snapshots

Describe the bug: Discover displays weird not aligned empty space when user opens a single document in the top and timepicker.

Logging after discussing it with @andreadelrio

empty_spaxe
andreadelrio commented 3 weeks ago

@elastic/kibana-data-discovery for this have we considered having the Unified Search bar take up the whole window's width and then show the Expanded Document flyout below?

davismcphee commented 2 weeks ago

While it doesn't look great, I believe this is an intentional behaviour of Unified Search and how it handles responsiveness. It occurs in any app that consumes Unified Search when an absolute time range is used and space is limited, not just when the doc viewer is open in Discover:

unified_search

have we considered having the Unified Search bar take up the whole window's width and then show the Expanded Document flyout below?

@andreadelrio I'm not sure this is possible with the EUI resizable push flyout we use for this. It adds padding directly to the document body which pushes all content to the side except the header. Maybe by reconfiguring the page layout it would be possible, but I'm not really sure and it at least doesn't seem like a quick/easy change.

andreadelrio commented 2 weeks ago

@davismcphee I see. I'm good with marking this as wont-fix. I don't think it has a big impact on UX. Ryan is considering designing a Unified Search 2.0 and I've made him aware of this issue so he can consider a workaround for it there.

davismcphee commented 2 weeks ago

Ok sounds good, thanks. I'm going to close this one in that case since it's an intended behaviour of Unified Search and not related to something Discover is doing with its doc viewer flyout.