thomasloven / lovelace-card-mod

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

CardMod is not working as expected in kioskmode. #351

Open Yngve0 opened 5 months ago

Yngve0 commented 5 months ago

My Home Assistant version: 2024.1.3

My lovelace configuration method (GUI or yaml):GUI I am running a Raspberry pi with HyperPixel 4.0 in kiosk mode

What I am doing: I want to increase the fontsize for a widget card_mod: style: | ha-card { font-size: 220%; }

What I expected to happen: I expected that fontsize is increased to 220% for the actual widget in the dashboard

What happened instead: In Kioskmode (--kiosk): fontsize is default size Without --kiosk: fontsize is increased to 220% (Same user on both tests) By putting an X in the boxes ([]) below, I indicate that I:

orbelico commented 4 weeks ago

I can confirm this behavior. Very interestingly, kiosk mode is not the only similarity in my case, but I am also seeing this problem on a Raspberry Pi (Pi3) with a touchscreen (although the screen model is different, it's an older, cheaper one but has the same resolution as the OP's display).

I am using card-mod to dynamically enlarge entity-cards. Works like a charm on all my devices and browsers, including mobile app. Also works on the RasPi in chromium browser - unless I run it in kiosk mode.

Not sure what could be helpful for further debugging here, but if I can provide anything, I'll be happy to do so, this is a major problem for me right now.

Just one hunch: both displays have the same, quite low resolution (800x480) compared to regular PCs or smartphones. Could that be an issue?