lovelace-toggle-lock-entity-row icon indicating copy to clipboard operation
lovelace-toggle-lock-entity-row copied to clipboard

Switch still toggles if you click on the toggle from the edge

Open iptvcld opened this issue 5 years ago • 3 comments

Switch still toggles if you click on the toggle from the edge - it bypasses the lock and still turns on or off the switch if you click on the toggle from the edge (left or right side)

iptvcld avatar Aug 17 '19 01:08 iptvcld

For does who can/want to fix this themselves, here some short instructions;

Add the following lines from lines as 20-23 in the .js file:

		width: 70px;
		height: 50px;
		margin-left: -13px;
		margin-top: -4px;

After adding above lines, change line 26 from: margin-top: 8px; to margin-top: 13px;

And change line 28 from margin-right: 7px; to margin-right: 22px;

This will make the overlay bigger so the switch is overlay completely, where its now not.

freemann avatar Oct 14 '19 07:10 freemann

Thanks @freemann works great! I also had to add ?v=2.1 (version increment) in LL

iptvcld avatar Oct 14 '19 23:10 iptvcld

This row is now deprecated. Please use restriction-card instead.

thomasloven avatar Jan 31 '20 08:01 thomasloven