-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
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
Card moving left and right on small device #48
Comments
Sounds strange. What type of device are you on? I'm not seeing this on my cell phone. Could you post the yaml config of your dashboard to see if there can be anything in particular? Or try to add a brand new dashboard with the charger card only for testing (can be deleted after test if you want), just to figure out if there is something in the context that makes this happen. |
@tmjo Thanks for your reply.
|
If I only set the charger entity, then I have no issues. It starts as soon as I set the charger brand. This simple Yaml config works.
|
Hmm. I'm guessing it may be some overflow due to "large" values. Could you test replacing info_left and info_right with the below code (rounds numbers to zero decimals like I believe it was previously)? If it doesn't work, see if it helps to temporarily remove both sections below instead. If that helps, try to add one by one and see which one is the bad guy.
|
Thanks for the steps to try out. I have followed the sugested steps, but unfortunately these did not solve the issue. |
I think it might be related to the sections toolbar_right and toolbar_left. |
Ok. Are you using the toolbar or is it turned off? I couldn't see it in your screenshot, so perhaps that may be a thing? |
Do you still see this issue? |
Yes, this is still an issue. |
I'm not using the toolbar, and only using info_right.
|
@TyzzyT; this was not clear for me. What doesn't work? The rounding itself or does your card move like the subject in this issue? |
@tmjo Sorry for not being clear, now that I read it again it's not very clear 😨 |
Had the same issue, disabling the info_right section fixed it. |
This is related to the tooltips inside the infoitems and infoitems-left classes overflowing. Removing the .tooltiptext-right span resolves the issue. An option for disabling the tooltips would be neat. But if you still want the tooltips, another solution could be to show them inside the card (by changing their alignment) to avoid their text overflowing. EDIT: I installed the lovelace-card-mod and added this at the bottom of the card to remove the tooltips: |
The issue started with the update of HA 2023.4.
When the charger card setting is set to eg. Easee, the card is moving to the sides, when scrolling on small device.
I am not having the issue with any other custom cards.
I hope the attached images helps ilustrate the issue.
The text was updated successfully, but these errors were encountered: