We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
when using the "full-size" option, static scaling and translate values are used:
power-flow-card-plus/src/style.ts
Line 67 in 31a9518
Would it be possible to calculate a scale factor depending on the size of the ha-card tag and the content div? Maybe something like this:
ha-card
div
var hacard = document.getElementsByTagName("ha-card")[0]; var content = document.getElementById("power-flow-card-plus"); var scalefactor = Math.min(hacard.offsetHeight/ content.offsetHeight, hacard.offsetWidth / content.offsetWidth) content.style.transform = "scale("+scalefactor+")";
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
when using the "full-size" option, static scaling and translate values are used:
power-flow-card-plus/src/style.ts
Line 67 in 31a9518
However, this is not suitable for all screen sizes.
Would it be possible to calculate a scale factor depending on the size of the
ha-card
tag and the contentdiv
?Maybe something like this:
Thanks
The text was updated successfully, but these errors were encountered: