making on off buttons in mobile dashboard bigger
Moderator: leecollings
-
- Posts: 13
- Joined: Monday 23 November 2015 21:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
making on off buttons in mobile dashboard bigger
Hi,
could some css/htnl-guru, tell me how i can make the on and off switch/lights buttons bigger in dashboard (mobile view)?
thanks
could some css/htnl-guru, tell me how i can make the on and off switch/lights buttons bigger in dashboard (mobile view)?
thanks
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: making on off buttons in mobile dashboard bigger
Maybe control + / - keys in the browser work ?
Quality outlives Quantity!
-
- Posts: 13
- Joined: Monday 23 November 2015 21:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: making on off buttons in mobile dashboard bigger
yes it does, but unfortunately on my android phone that isn t an option.
I would want them a bit wider, on my sub 5 inch phone, it is hit and miss. They are displayed below each other:
I would want them a bit wider, on my sub 5 inch phone, it is hit and miss. They are displayed below each other:
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: making on off buttons in mobile dashboard bigger
Depends on what your browser is... Chrome or FireFox have 'remote' debufging options.
With that you can see which css-file AND which tag you need to modify...
Dont have a guide howto, but on developer.google.com are a few howto's for Chrome.
Problem (at least for me) is both Phone and Desktop PC need to be in the same ip-range to do this wired/wireless. Else you can debug thru usb-datacable.
Grtz,
Stephan
With that you can see which css-file AND which tag you need to modify...
Dont have a guide howto, but on developer.google.com are a few howto's for Chrome.
Problem (at least for me) is both Phone and Desktop PC need to be in the same ip-range to do this wired/wireless. Else you can debug thru usb-datacable.
Grtz,
Stephan
-
- Posts: 13
- Joined: Monday 23 November 2015 21:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: making on off buttons in mobile dashboard bigger
<button class="btn btn-mini btn-info" type="button" onclick="SwitchLight(2,'On',RefreshFavorites,false);">On</button>
that what i find, bootstrap.css, but how should i proceed...
that what i find, bootstrap.css, but how should i proceed...
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: making on off buttons in mobile dashboard bigger
That text "Status at this moment" should not be there...
buttons should be next to each other like this:
Are you using the default domoticz theme/html files ?
buttons should be next to each other like this:
Are you using the default domoticz theme/html files ?
Quality outlives Quantity!
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: making on off buttons in mobile dashboard bigger
I think you are using the element theme... could you change to simple gray for example ?
Will be corrected in a beta
Will be corrected in a beta
Quality outlives Quantity!
-
- Posts: 13
- Joined: Monday 23 November 2015 21:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: making on off buttons in mobile dashboard bigger
yeah, i switched layouts, put it back on default
i removed browser cache, reinstalled browser and now buttons are displayed next to each other.
But question remains, where is the size defined of these on/off buttons?
Anyone?
i removed browser cache, reinstalled browser and now buttons are displayed next to each other.
But question remains, where is the size defined of these on/off buttons?
Anyone?
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: making on off buttons in mobile dashboard bigger
You already answered your question. You did find out which class and which css file bootstrap.css is responsible.
In debugger, just edit the sizes, changes on the fly.
However it is possible that another (loaded and called later) overwrites the setting. Debugger should show that also. Out of the head css option "important" or "no-overwrite" should fix that.
I'm mobile so no example available right now.
Grtz,
Stephan
In debugger, just edit the sizes, changes on the fly.
However it is possible that another (loaded and called later) overwrites the setting. Debugger should show that also. Out of the head css option "important" or "no-overwrite" should fix that.
I'm mobile so no example available right now.
Grtz,
Stephan
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: making on off buttons in mobile dashboard bigger
But question remains, where is the size defined of these on/off buttons?
Anyone?
Code: Select all
<button class="btn btn-mini btn-info" type="button" onclick="SwitchLight(2,'On',RefreshFavorites,false);">On</button>
If hunting thru bootstrap.css (around line 2539), then you’ll be looking to change the padding values in the btn-mini class - first value is used for top/bottom padding, second value is for left/right padding.
OR you could leave the css alone and do a find-and-replace on ~/domoticz/www/app/DashboardController.js where you should try changing all instances of btn-mini to btn-default, or btn-large, or (if you want to get brutal) btn-block. Restart Domoticz, and possibly drop your cache to get the changes to take effect.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
Who is online
Users browsing this forum: No registered users and 1 guest