This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Simple Stylish script to fix some UI issues
Phuturist
Member
The current implementation of flow management has it's limitations. Although better flow management is on the backlog of Athom which will eventually bring improvements like scrolling, searching and flow categories this may take some time as it's quite a big change and does not have priority for the moment.
As the number of my flows have grown longer then my screenheight, the only way for me to edit the flows at the bottom of the list was to zoom out my browser to like 75%. Like probably everyone on this forum I like making my life easier (why else would you want home automation) so I decided to create a very small Stylish script which enables a scrollbar in the flow list. The script also contains some code to condense the list so the number of items in the viewport increases but this is of course optional. You should set the height of the flow list to the height of your viewport (which depends on your screen resolution). Hopefully this is helpful to some.
As the number of my flows have grown longer then my screenheight, the only way for me to edit the flows at the bottom of the list was to zoom out my browser to like 75%. Like probably everyone on this forum I like making my life easier (why else would you want home automation) so I decided to create a very small Stylish script which enables a scrollbar in the flow list. The script also contains some code to condense the list so the number of items in the viewport increases but this is of course optional. You should set the height of the flow list to the height of your viewport (which depends on your screen resolution). Hopefully this is helpful to some.
For firmware lower than 0.8.35
#flows-dialog { height: 900px; /* set the height of your browser here (depending on your screen resolution) */ overflow-y: auto; overflow-x: hidden; } /* edits below here are optional and intended to condense */ /* the list with flows making more flows visible in the viewport */ #flows-dialog li span.label { height: 26px; } #flows-dialog li span.label span.enabled { width: 10px; height: 10px; top: 5px; } #flows-dialog li span.label span.enabled:before { line-height: 10px; font-size: 10px; width: 10px; } #flows-dialog li span.label span.name { font-size: 13px; line-height: 26px; height: 26px; } /* edits below here are optional and make the flow cards align */ /* to the top so they are still editbale when there are a lot of cards in a column */ #editor>.column>.items { justify-content: flex-start; }
For firmware 0.8.35
#flows-dialog-inner { height: 800px; /* set the height of your browser here (depending on your screen resolution) */ }
Comments
This helps a lot while waiting for the better flow management, which I can understand is not high on the priority list ( stability first).
Thanks!
https://en.wikipedia.org/wiki/Stylish
I don't stop scrolling up and down when creating flows...
And maybe make the scrollbar a little wider?
The draggable part is a bit offset above, will try to fix this when i find the time
Couldn't find the way to make the scrollbar wider (yet), it is in a different location and couldn't find the code that fast.
Everything is way huuuuge again now...
Any way to adapt this to the new firmware?
If you tell me what you like to see fixed it wont be hard to edit the script. I assume you need it for long lists of cards in the AND and ACTION colomn but let me know before I put effort into the wrong thing.
.item>.label>.name {
font-size: 13px;
font-weight: 500;
height: 20px;
line-height: 20px;
}
.item>.label>.icon {
width: 20px;
height: 20px;
}
.label.item ui-draggable {
height: 20px;
}
.cards>.item {
height: 50px;
}
.category>.label>.label-inner {
color: #FFFFFF;
}
#sidebar .category {
margin: 0px;
}
.category>.items>.item {
height: 50px;
}
Perfect
But thanks anyway for willing to look into it!