Use border-radius: 10%
for "state-badge" elements
#13140
Unanswered
ildar170975
asked this question in
Dashboard
Replies: 2 comments 5 replies
-
Right now, Home Assistant uses rounded entity pictures in most places. If you want to change it to a rounded square, I'd recommend using card-mod. |
Beta Was this translation helpful? Give feedback.
5 replies
This comment was marked as disruptive content.
This comment was marked as disruptive content.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
state-badge
element is used to display an icon in some Lovelace cards.Mainly icons have a transparent background.

Currently by default the
state-badge
element has aborder-radius: 50%
property.It becomes visible if you apply some background-color to the
state-badge
:Imagine that some entity has an

entity_picture
property specified.Then we will see a picture in a circle:
For person's pictures this could be acceptable.

But what if an image represents some other stuff - an actual device, a flora etc?
Surely I may apply a
border-radius: 10%
style to thestate-badge
:I suggest to use that
border-radius: 10%
style as a default style for ALLstate-badge
elements.I propose to start with Entities card & Logbook card.
Beta Was this translation helpful? Give feedback.
All reactions