Replies: 5 comments 8 replies
-
Hi Pieter, Thanks for the feedback. Shortly after you started this discussion, I got a message from @guybw that the card looks strange on a tablet (I had only tested it on a PC browser and my mobile phone). When looking at it on a tablet, it does indeed look very weird. I attached 2 photos, one from the mobile and one from the tablet. Please let me know if this is the same issue you are having? Although I do programming for a living, I have no other experience with JavaScript or HTML so there's a lot of trial and error involved in this card. Hope to get it sorted soon.
|
Beta Was this translation helpful? Give feedback.
-
Good Morning
I assume the top images is from your tablet. I have an iPhone and my image looks exactly the same. I’m in infrastructure and has no clue where to start to help with code 😊
Kind regards,
Pieter
From: Dante Winters ***@***.***>
Sent: Monday, July 10, 2023 8:52 AM
To: DanteWinters/lux-power-distribution-card ***@***.***>
Cc: Pieter Janse van Rensburg ***@***.***>; Author ***@***.***>
Subject: Re: [DanteWinters/lux-power-distribution-card] Card Size (Discussion #25)
Hi Pieter,
Thanks for the feedback. Shortly after you started this discussion, I got a message from @guybw<https://github.com/guybw> that the card looks strange on a tablet (I had only tested it on a PC browser and my mobile phone). When looking at it on a tablet, it does indeed look very weird. I attached 2 photos, one from the mobile and one from the tablet. Please let me know if this is the same issue you are having?
Although I do programming for a living, I have no other experience with JavaScript or HTML so there's a lot of trial and error involved in this card.
Hope to get it sorted soon.
[Tablet]<https://user-images.githubusercontent.com/63704455/252257404-4ad6ee0e-99f4-4f23-ad48-f58c4f09b72b.PNG>
[Mobile]<https://user-images.githubusercontent.com/63704455/252257480-37eda881-3daf-4eaa-a3d7-ce41a8c62b25.jpeg>
—
Reply to this email directly, view it on GitHub<#25 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI2JQ6JO2RZ23FBCF5PH4ZTXPORBJANCNFSM6AAAAAA2CY5PLE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Good news. I think I found the issue. Went looking and it looks like Safari (and by extension Apple devices) handle the some default css properties a little differently. This explains why it looks weird on an @Pieterjvr 's iPhone or my iPad. I also got it tested on a Mac on Safari and Brave, the issue was definitely with Apple. Latest release (v0.4.2) isn't perfect, but solves Apple issue (tested on all above devices except an iPhone). @guybw , I hope this also fixes the issue on your tablet. Please let me know if it doesn't because then it's back to the drawing board. |
Beta Was this translation helpful? Give feedback.
-
Good Evening Dante from a cold South Africa I have quickly updated my module with the new one. Below are screenprint it took froom google chrome, safari and from the home assistant app on my iphone. Chrome and safari looks way better but getting to the home assistant app, it still look out of per portion. Home Assistant App: As can see from the home assistant app, it expand almost over two screen and require to scroll down. The other thing I picked up are,
I have load VSCode on my machine to see if I can decipher the code to assist with amendment but when looking at the code, some tuff make sense but not sure how HTML Elements and JavaScript work at all. I will try to test it over the weekend with Kiosk Browser on a Samsung galaxy tab |
Beta Was this translation helpful? Give feedback.
-
Hi @Pieterjvr |
Beta Was this translation helpful? Give feedback.
-
Hi Dante
Nice work on the card. I am no where close to be a programmer etc. Looking at the card on a dashboard on a big screen looks very nice, but when opening HA om a mobile phone the card is huge and feels a bit out of per portion. Is this something that can be change for example to auto resize for smaller mobile screens?
Kind regards,
pieter
Beta Was this translation helpful? Give feedback.
All reactions