Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock above toggle in "row-mode" #1

Closed
noxhirsch opened this issue Oct 18, 2019 · 4 comments
Closed

Lock above toggle in "row-mode" #1

noxhirsch opened this issue Oct 18, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@noxhirsch
Copy link

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
Copy link
Owner

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 iantrich changed the title Feature Request: Lock above toggle in "row-mode" Lock above toggle in "row-mode" Oct 20, 2019
@iantrich iantrich added the enhancement New feature or request label Oct 20, 2019
@iantrich
Copy link
Owner

iantrich commented Nov 4, 2019

this has been added

@iantrich iantrich closed this as completed Nov 4, 2019
@Mariusthvdb
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants