grafana / grafana-kiosk

Kiosk Utility for Grafana
Apache License 2.0
362 stars 59 forks source link

fix autofit logic #103

Closed briangann closed 1 year ago

briangann commented 1 year ago

Grafana doesn't parse autofitpanels= correctly, it only expects autofitpanels with no equals or value.

this detects if there are params set, and appends as necessary.

Along with WindowSize and AutoFitPanels, the kiosk works on smaller displays like a 7" touchscreen (1024x600 resolution) and scales the panels as intended.

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit e77f44ce and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 3.9% (0.5% change).

View more on Code Climate.