VolkovLabs / business-media

The Business Media panel is a Grafana plugin that renders PNG, JPG, GIF, MP4, WEBM, MP3, OGG, and PDF files encoded in the base64 format and URL.
https://docs.volkovlabs.io
Apache License 2.0
24 stars 3 forks source link

Setting the panel height #52

Closed asafgalili closed 2 years ago

asafgalili commented 2 years ago

Hello, I am using the Base64 image grafana plugin, and it seems great. Though, I don't understand how the Panel height can be determined.

If I select that the width and height will be by the panel, the image width\height proportions are changed: image

If I select to have 2 images per line, with the width by the panel with original height the image may override one another, like that: image

What I want to achieve is to have 2 images per line, where the width is by the panel and the panel height will be adjusted per each line by the "heights" image in that line.

for example (forgive me for my bad photoshop abilities): image

Is it possible???

Thanks, Asaf

mikhail-vl commented 2 years ago

@asafgalili Thank you for your questions.

It would be a nice feature, but plugins can't modify the panel dimensions. Only Dashboard Editors can change the layout of the dashboard.

You can choose a custom option and get each image's calculated width and height from the data source. It can help to display it correctly in the provided layout.

Let me know what you come up with. Maybe there is another option we can add to help with your use case.

asafgalili commented 2 years ago

Thanks a lot