OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Stations view in two rows
- This topic has 10 replies, 3 voices, and was last updated 3 years, 9 months ago by tsikishome.
-
AuthorPosts
-
March 22, 2021 at 2:01 pm #69489
tsikishomeParticipantHello, is there a possibility to change the UI to the stations are displayed in two rows?
The problem is that I want to build my 2nd ospi for my parents house but I will control up to 32 relays.
The UI seems to display the stations in a single row which is not convenient.Is there a solution?
Best regardsApril 7, 2021 at 7:09 am #69692
tsikishomeParticipantHello all,
I would really hope that someone has done this before and could help.April 8, 2021 at 9:46 am #69708
RayKeymasterDid you mean two columns? You said two rows. Because the UI is designed primarily for mobile usage, it’s very difficult to fit two columns on one screen, especially for stations names that are relatively long.
You can customize the UI yourself: just replicate the UI code, make changes to the javascript, and then simply open the www/index.html in a browser to see the effect of your changes.
April 8, 2021 at 10:21 am #69710
tsikishomeParticipantHello Ray,
Yes I meant two columns. My bad!
The ideal situation for me is to have 2 columns and use my iPad in landscape view. As well any pc browser.
Just today I was trying to find more info on the UI and found out that the UI assets can be stored locally and be altered which is good!
I will follow this road and inform with progress in case somebody is interested as well!April 12, 2021 at 10:51 am #69751
tsikishomeParticipantLooking good so far.
Still some work to do because the active stations shown on the top are still in one column.Attachments:
April 19, 2021 at 1:14 pm #69826
RayKeymasterCool, indeed looks very nice!
April 20, 2021 at 3:20 am #69840
tsikishomeParticipantThanks Ray!
Yes it looks nice!
And with both some active zones.Attachments:
April 20, 2021 at 3:23 am #69842
tsikishomeParticipantThe problem now is that if an odd number of zones are activated,
the zones are not shown correctly as the elements are cut in half.
Keep looking.Attachments:
April 20, 2021 at 5:11 am #69845
tsikishomeParticipantFixed! Super happy with the final result!
Attachments:
April 23, 2021 at 10:04 pm #69883
SamerKeymasterLooks great, if you would be okay with it we could include this in the main repo. If you are interested please submit a pull request.
Thank you!
April 25, 2021 at 8:05 am #69903
tsikishomeParticipantHello Samer, I don’t understand what you mean with pull request. Do you mean github? I am not sure what to do.
For anyone interested,
I changed the app.css file,
1. Changed this::not(input):not(textarea) { -webkit-touch-callout:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; -ms-touch-select:none; -ms-content-zooming:none; -o-user-select:none; user-select:none; }
to this:
:not(input):not(textarea) { -webkit-touch-callout:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; -ms-touch-select:none; -ms-content-zooming:none; -o-user-select:none; user-select:none; margin: 0; -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid-column; }
2. changed this:
#os-stations-list img, #os-running-stations img { display: none; }
to this (added underneath):
#os-stations-list img, #os-running-stations img { display: none; } #os-stations-list{ column-count: 2; column-gap: 10px; -webkit-column-count: 2; -moz-column-count: 2;} #os-running-stations{ column-count: 2; column-gap: 10px; -webkit-column-count: 2; -moz-column-count: 2;}
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Stations view in two rows