mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Update state-badge.html
adding a background-color to the icon-image in this element fixes the issue where images and icons overlap but allows a fallback if an image is not defined. The only situation that this doesn't cover is if an icon is specified and the link is broken (i.e. a 404 on the image), then there will just be a white block. I decided this was actually more useful since then its obvious that there should be an image there.
This commit is contained in:
parent
0b99a5933c
commit
89eee944c6
@ -21,6 +21,7 @@
|
||||
|
||||
iron-image {
|
||||
border-radius: 50%;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
ha-state-icon {
|
||||
|
Loading…
x
Reference in New Issue
Block a user