EmonCMS - custom dimension of the Dashboard surface

Hi All,

I'm searching for a way to change the default scale of the Dashboard zone.

Indeed, I would like to enlarge the "editable" zone, and also fix a different default height, to avoid to play with tricky element's moves to gain place at the bottom of it....

The purpose is to use almost 100% of my screen view and to keep normal  resolution  (not a  "zoom-in" with the browser)

Thanks.

XaroRSA's picture

Re: EmonCMS - custom dimension of the Dashboard surface

In dashboard_edit_view.php, after the <script type="application/javascript"> line, add the following:

$(".container").css("width","100%");

That just took 2 hours of hunting, you are welcome :D

Ok wait seems in dashboard view it doesnt work hold plz

Ok add the line mentioned above after the <script type="application/javascript"> line in both the dashboard_edit_view.php and dashboard_view.php file.

bugmax's picture

Re: EmonCMS - custom dimension of the Dashboard surface

Terrific !

That's working fine.

Thanks a lot XaroRSA !

 

XaroRSA's picture

Re: EmonCMS - custom dimension of the Dashboard surface

Will work for food :D

Paul Reed's picture

Re: EmonCMS - custom dimension of the Dashboard surface

Does this fix extend the header to 100% width, to overcome the problem seen on my phone's screenprint below. 

Paul

XaroRSA's picture

Re: EmonCMS - custom dimension of the Dashboard surface

I think it will Paul

Paul Reed's picture

Re: EmonCMS - custom dimension of the Dashboard surface

That's good, it's been an annoyance of mine for a long time!
Have you done a Git pull request, it's worth an update.

Paul

bugmax's picture

Re: EmonCMS - custom dimension of the Dashboard surface

Hi,

Unfortunatly, It's not working.
I've just did the test on my Iphone.
First the 100% don't apply to my Iphone Display.

Everything you've put on the Dashboard editor will be displayed, but you will have to zoom out
and the picture won't stay more reduced as much as you probably need. That's point is maybe for Iphone only.

The navigation bar behavior is not the same as the dashboard editing zone, so it stay exactly the same as you picture...

Regards.

 

XaroRSA's picture

Re: EmonCMS - custom dimension of the Dashboard surface

Can you post a picture bugmax

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.