Hey there! First of all, thanks for this amazing project. I have been using it for some time now. But here is a small problem. Everytime I do any interaction with mouse, the card seems to re-render itself. And strangely, this problem only occurs when the window is maximized (IDK if it's related).
I did some small research and found a renaming typo. It's on commit swingerman/lovelace-fluid-level-background-card@137da7bffd71ac1be5af40d725eefc5d4c5ad394 and merged to main with #11. While renaming action-handler-fluid-progressbar to action-handler-fluid-progressbar, line that checks if action handler exists mistakenly checks for action-handler-sbar. This causes the code to append hundreds of action handler elements to document body. I tried changing the code on my HASS instance and it fixed the problem. And this small PR, I just fixed that naming.
Hey there! First of all, thanks for this amazing project. I have been using it for some time now. But here is a small problem. Everytime I do any interaction with mouse, the card seems to re-render itself. And strangely, this problem only occurs when the window is maximized (IDK if it's related).
I did some small research and found a renaming typo. It's on commit swingerman/lovelace-fluid-level-background-card@137da7bffd71ac1be5af40d725eefc5d4c5ad394 and merged to main with #11. While renaming
action-handler-fluid-progressbar
toaction-handler-fluid-progressbar
, line that checks if action handler exists mistakenly checks foraction-handler-sbar
. This causes the code to append hundreds of action handler elements to document body. I tried changing the code on my HASS instance and it fixed the problem. And this small PR, I just fixed that naming.Here is a video of the bug caused by the typo:
https://github.com/user-attachments/assets/8787d1cb-c85a-4301-a392-786cdb486844