Skip to content
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

Kibana discover UI only displays image(URL) partially #61755

Closed
Onion-Skins opened this issue Mar 30, 2020 · 3 comments
Closed

Kibana discover UI only displays image(URL) partially #61755

Onion-Skins opened this issue Mar 30, 2020 · 3 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed

Comments

@Onion-Skins
Copy link

Kibana version:
7.6.1

Elasticsearch version:
7.6.1

Server OS version:
Ubuntu 18.04.4

Browser version:
Google Chrome Version 73.0.3683.103 (Official Build) (64-bit) (on Windows server 2016)
Firefox 74.0 (on Ubuntu 19.10)

Browser OS version:
Windows Server 2016 & Ubuntu 19.10

Original install method (e.g. download page, yum, from source, etc.):
Ubuntu Apt installation from
deb https://artifacts.elastic.co/packages/7.x/apt stable main

Describe the bug:
I have a created a field mapping in Kibana to display image by URL.
The portrait image(w:h = 3:4) is displayed in discover UI but only upper part shows up.
Changing the width and height does not seem to help.

Steps to reproduce:

  1. create a document string field to hold the URL to a image;
  2. inject a test doc into elasticsearch;
  3. create index pattern in kibana and maps the string fields to URL:image
    Screenshot from 2020-03-30 11-35-08
  4. click discover and show the doc you just injected.

Expected behavior:
Image should be display completely.

Screenshots (if relevant):
Screenshot from 2020-03-30 11-18-01

Errors in browser console (if relevant):
Screenshot from 2020-03-30 11-48-23

Provide logs and/or server output (if relevant):
No error in Kibana's own logs

Any additional context:
If I change the field mapping to URL/Link, the image can be displayed correctly when I click the link in Discover(popping up a new browser tab and display the image).

@Onion-Skins Onion-Skins changed the title Kibana discover UI to display image(URL) partially Kibana discover UI only displays image(URL) partially Mar 30, 2020
@nreese nreese added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed labels Mar 31, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@nreese nreese added the Feature:Discover Discover Application label Mar 31, 2020
@Onion-Skins
Copy link
Author

Onion-Skins commented Apr 4, 2020

I just found out that setting height value to some number between 1 and 130 can make the images show as complete thumbnails. Leaving height value blank or setting it too high will cause the issue mentioned above.
I am not sure if the max height value is related to image dimension or not. In my case it seems to be 130-ish.
This behaviour is not documented. Not sure if it's intentional or bug.

@kertal
Copy link
Member

kertal commented Apr 17, 2020

dear @Onion-Skins, tested it, and it's automatically truncated to the height of 115px, that's generally done for long content in Discover. We're about to replace the data table by our EuiDataGrid, so I'm closing this as it's not a bug and link to the EuiDataGrid issue #51531 as a reminder to check it in this new implementation. Thanks for your issue

@kertal kertal closed this as completed Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed
Projects
None yet
Development

No branches or pull requests

4 participants