iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
271 stars 23 forks source link

Lock above toggle in "row-mode" #1

Closed noxhirsch closed 4 years ago

noxhirsch commented 4 years ago

When using the restricion card as a row, it would be nice to have the lock above the toggle or button etc.. like in thomaslovens toggle-lock-entity-row: https://github.com/thomasloven/lovelace-toggle-lock-entity-row Because that where the user usually looks and clicks.

So in the case of rows it should be restriction-lock-margin-left

Anyway: Thank you very much for this great and really useful card!

iantrich commented 4 years ago

It's not that simple as there are lots of different row types, not just toggle. Current placement was the best compromise I could come up with on short notice. I'll probably add an override in the card as theme level won't work as you could have cover rows you want aligned differently than slider rows for example.

iantrich commented 4 years ago

this has been added

Mariusthvdb commented 4 years ago

please let me ask how to accomplish this lock-above-toggle? Can't find any hints in the docs. Pardon me if I overlook the obvious..

noxhirsch commented 4 years ago

@Mariusthvdb: Just add this to your theme: restriction-lock-row-margin-left: 94%