thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.19k stars 167 forks source link

Card-Mod does not work in Chrome or Webkit but does in Firefox #397

Open mhentschke opened 3 months ago

mhentschke commented 3 months ago

My Home Assistant version: 2024.7.3

My lovelace configuration method (GUI or yaml): GUI

What I am doing: Using any mods in Firefox and in Chrome/Webkit

What I expected to happen: Mods to apply

What happened instead: Firefox works flawlessly. Chrome and Webkit do not work at all even after cleaning the cache in multiple different devices (Windows, Mac, Android Tablet and Android Phone

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error

type: custom:mushroom-entity-card
entity: person.myperson
card_mod:
  style: |
    ha-state-icon {
      color: orange;
    }

# End of code

Error messages from the browser console:

No relevant error message in either browser. Browser consoles look the same when it works and when it does not

Other maybe relevant info:

What I tried:

No changes were seen in any of these trials

By putting an X in the boxes ([]) below, I indicate that I:

ildar170975 commented 3 months ago

изображение

Means - ask in Community first since you are probably doing smth wrong.