-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Input Select in sub-button overlaps side of screen on mobile #946
Comments
Hi! Indeed I need to fix that! But in the meantime you can change it with: ha-card {
--bubble-select-list-width: 150px;
} This is pretty difficult to fix, so I'm not sure that I will change that for the next release, but I will not forget about that one 👌 |
Thats working perfectly thanks so much! Love your work by the way, I only started making my firt proper hass dashboard recently and its all bubble cards and looking fantastic. Keep it up! While I have you just another question. This may be a more general hass question though, so if so let me know and I can go searching for the answer. |
Tough one, I guess that the best way would be to create an automation that reset your input_select, even if I'm not sure that there is an easy way to detect if it was modified outside of your initial input_select automation. I can't help you more on that but let me know if you found a way. And thanks for the kind words! |
Thanks I'll play around with resetting the state when the brightness changes. I only learned about input select recently so I'll have to do some reading and experimenting and will let you know how I go |
I made an additional option called 'Test' in my input select and then an automation with a trigger so when one of the options are selected, after 1 second the 'Test' option is then selected instead, which then doesnt trigger anything. I tried making it so the trigger was when the brightness would change, but that didn't seem to trigger and the options there were limited. There was no increase/decrease brightnes trigger, unless I missed it. Automation yaml below. I just have to add in all other options to the triggers.
A couple of question.
I know this isn't related to bubble cards now, so I need to ask elsewhere please let me know :) Edit: Ideally I would like that option to be hidden, but I'm like 80% happy with the solution so it's good enough. I'm surprised there's no way to have no option selected, that's essentially what I'm trying to do here. |
You could rename that empty option to "Custom" or "None", there is maybe a way to hide it with a custom style, but I know that some parts of it can't be edited, so I'm unsure. |
I appreciate the suggestions but I might just leave it for now since it's working well enough. I'll keep an eye out for a solution but I'm pretty happy with it now. I also realised the automation can trigger when the state 'changes to any state' so I can set triggers for each light and use the choose action to hit each of the light inputs selects, so at least that part is easy |
Describe the bug
When using the input select entity as a sub-button, in a bubble card button card, the size of the drop down doesn't change. This problem is only on mobile and is due to the buttons being sized smaller on mobile.
The buttons are in a pop-up. The screenshot explains the issue better.
Expected behavior
Resize the dropdown to not exceed the width of the button card it's in.
Screenshots
Not sure why the picture is so big, sorry about that. I've also updated pop-up setting margins since screenshotting this.
YAML
Relevant section:
Informations (please complete the following information):
Additional Info
If there's any styling I can apply to reduce the width of the drop-down I'm happy to apply that.
The text was updated successfully, but these errors were encountered: