-
Notifications
You must be signed in to change notification settings - Fork 423
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
Favorite Button and Horizontal Fix #1256
Favorite Button and Horizontal Fix #1256
Conversation
As in issue #1215, changes to the horizontal mode to allow a 'priority' item are planned. I think it makes sense to have a separate PR for this as changes will likely be consistent on other cards too. This PR is hence ready for review/merge. |
@basbruss thanks for having a look, I've thought the same thing. I personally don't really have a preference of the order. I don't know the best way for this to work (currently it's just in one order - buttons, slider, tilt)... open to ideas |
@benbur98 @basbruss My recommendation would be the following:
|
@shift-del1 I've implemented this as you've suggested in the last comment. Personally I think it's a little clumsy so will think about how best to do it in the future (this will be common across other cards too so need some common solution). |
Thank you. This was just my idea, but I'm open for anything else better :-) |
For this, changing ulm_card_cover_enable_horizontal: true -> ulm_card_cover_enable_horizontal: slider should allow this - it will set the slider as the priority horizontal element in the card. Maybe overlooked this change as a breaking change... |
Yep, changing true to slider helped, thx. This was not obvious at all, since all other parameters takes boolean inputs |
Have added a Favorites button to the card:
![image](https://user-images.githubusercontent.com/77846694/230495994-4ee503a4-a4f8-4d2a-859d-e43dddd51c3a.png)
Have also fixed the Horizontal mode display to display multiple options if selected:
![image](https://user-images.githubusercontent.com/77846694/230496051-9ffb5ee9-6eaf-4d6b-861a-ccfcfcd85074.png)
This PR fixes or closes issue: fixes #1215 and #1251
This PR is related to issue:
Link to documentation pull request:
Checklist
I have followed the contribution guidelines
This PR is for a custom-card or documentation change and therefore directed to the main branch.