asp
(Andrea)
May 1, 2020, 11:05am
1
I’m trying to add to Lovelace the Qlocktwo iframe using webpage card, but the result is not optimal…
Is there a way to remove white borders?
Next step would be to edit the size parameter according to the device (iPhone,Chrome on PC ecc…) and for this I think I might use the 📝 100% Templatable Lovelace Configurations
k2v1n58
(K2v1n58)
May 1, 2020, 12:12pm
2
You can do it using Lovelace-card-mod https://github.com/thomasloven/lovelace-card-mod
type: iframe
url: 'https://files.qlocktwo.com/Q2/embed.html?controls=false&language=EN&size=400'
aspect_ratio: 90%
style: |
ha-card {
background-color: rgba(0, 0, 0, 0);
box-shadow: none;
}
And then use 100% Templatable Lovelace Configurations to change ‘size=’ and ‘aspect_ration’
1 Like