artem-sedykh / mini-climate-card

Minimalistic climate card for Home Assistant Lovelace UI
MIT License
262 stars 19 forks source link

fix #66: 2022.3.X Breaks dropdown #67

Closed regevbr closed 2 years ago

regevbr commented 2 years ago

fix #66

So according to https://developers.home-assistant.io/blog/2022/02/18/paper-elements/ all paper elements are not supported anymore starting 2022.3 and they recommend using mwc components instead. The current behavior is a complete breakdown of the dropdown menus. After a couple of hours, I managed to get it working, but sadly CSS and positioning stuff is where I'm no longer effective. @artem-sedykh if you can take it from here and sort out the styling it will be awesome :-)

regevbr commented 2 years ago

@artem-sedykh I also fixed the positioning, I believe this PR is ready to be merged and would appreciate your CR. Need to note that this is probably will not work on previous versions of HA and as such, I added a comment in the readme and updated the version to 2 (as this is a breaking change).

https://user-images.githubusercontent.com/5775519/155855489-6f7ff7e7-4443-40d0-a960-197858bff67d.mp4

regevbr commented 2 years ago

I'm actually having trouble in mobile view when this card is way down in the scrolled view- the fixed positioning of the drop downs doesn't take under consideration the scroll position...

regevbr commented 2 years ago

I'm actually having trouble in mobile view when this card is way down in the scrolled view- the fixed positioning of the drop downs doesn't take under consideration the scroll position...

It seems that those issues are resolved in the newest beta version (maybe they were related to the HA frontend) @artem-sedykh can you please CR?

regevbr commented 2 years ago

To use the fix until it is released, follow the steps I made here

acdcnow commented 2 years ago

@regevbr looks like that he is not working any more on that repo... guess he has other issues ... look where he is from.. Moscow RU could you create a release in your fork?