Dalvany / dalvany-image-panel

Image panel for Grafana
MIT License
16 stars 3 forks source link

Image Container line break #37

Closed corgan2222 closed 3 years ago

corgan2222 commented 3 years ago

I use your panel to show the status of running docker containers on a dashboard. Its displayed on a 4K Monitor. Sadly the inner container is set to a maximal width, which makes an unnecessary line break.

grafik

This also happens, if I set the panel to max width.

grafik

Could you please change this, that the container can use the max width? Thanks

corgan2222 commented 3 years ago

The container max width comes from the grafana dark css. There it set to

@media(min-width:1200px) {
 .container {
  max-width:1080px
 }
}

I could fix it with the developer tools in the browser by setting

.div-container {
    .container max-width: 100%;
}

Could you overwrite this in your CSS for this container?

Damm you laptop coders. :)

Dalvany commented 3 years ago

What version of the plugin do you use ? I remember giving you "unofficial" versions to test overlay and underline but in the latest "official" release I made a change to avoid CSS classname clash (it's now main-container) Also, what grafana's version do you use, with 8.1.5 I do not have the same inheritance (it's normal since I change classname...) image

I'm not a CSS guru, so I don't really know how, with this bug, you have figured out that I'm indeed coding with a laptop ? 🤔

Dalvany commented 3 years ago

Hum you talked about div-container, not the parent div css class. But with the name change in parent div, is there still the bug ?

corgan2222 commented 3 years ago

I'm not sure, but I think I still use your dev version. I will reinstall the release version later and check if this is still the problem.

corgan2222 commented 3 years ago

I'm sorry, after removing and simple reinstall the problem is fixed... sometimes in can be that easy. :)