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

As of 110.0 the padlock icon no longer shows

Open JAAlperin opened this issue 5 years ago • 8 comments
trafficstars

I assume this has to do with changes to MDI icon handling mentioned in the release notes. Otherwise, it continues to function.

Although deprecated, this presents better than Restriction-Card.

Thank you, Thomas.

JAAlperin avatar May 21 '20 11:05 JAAlperin

Update line 53. Replace iron-icon with ha-icon

image

heathcooper89 avatar May 25 '20 08:05 heathcooper89

Thanks, but no change for me (Chrome, MacBook, hassio 110.2 224).  Did refresh resources.

Regards,

Jeff Alperin

H: 561-666-7789 C: 561-797-9876 On May 25, 2020, 4:00 AM -0400, heathcooper89 [email protected], wrote:

Update line 53. Replace iron-icon with ha-icon — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

JAAlperin avatar May 25 '20 11:05 JAAlperin

be sure to add some versioning and refresh the resources:

lovelace-toggle-lock-entity-row/toggle-lock-entity-row.js?v=0.1.2

though the icon is somewhat misplaced... Schermafbeelding 2020-05-28 om 10 49 58

Mariusthvdb avatar May 28 '20 08:05 Mariusthvdb

Adding below to #overlay fixed the lock positioning for me margin-top: 8px;

image

heathcooper89 avatar May 29 '20 05:05 heathcooper89

thank you, confirmed. Added color: red; myself to have it stick out.

Schermafbeelding 2020-05-29 om 10 38 58

Now only need it to be a bit bigger, seems the icon overlay is smaller than the entity icons, which I would like to adjust. Did try size:, height: and width: and several settings in the div already, but no change in icon size I am afraid.

Would you know how to do that?

Mariusthvdb avatar May 29 '20 08:05 Mariusthvdb

Add this to #overlay. You may need to remove the margin-top though zoom: 1.5;

I tested this with margin-top removed and I get this. Looks kinda nice. Think I might leave it that way

image

heathcooper89 avatar May 29 '20 23:05 heathcooper89

Have made all suggested changes, even reinstalled.  Yes, cleared browser, refreshed resources, etc.  Still no lock icon.  Logic works though.

Regards,

Jeff Alperin

H: 561-666-7789 C: 561-797-9876 On May 29, 2020, 7:42 PM -0400, heathcooper89 [email protected], wrote:

Add this to #overlay. You may need to remove the margin-top though zoom: 1.5; I tested this with margin-top removed and I get this. Looks kinda nice. Think I might leave it that way — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

JAAlperin avatar May 30 '20 17:05 JAAlperin

Thanks fellas. I agree that this one is a better look to how it's implemented. I wonder how long it will continue to work with these minor tweaks. I hope this keeps going for a while!

Here is my implementation. image

The file located in www folder. Resources called in via:

    - url: /local/toggle-lock-entity-row.js?v=0.1.123
      type: module

Mods to overlay:

        margin-top: 4px;
        zoom: 1.25;

poldim avatar Jun 09 '20 21:06 poldim