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
Widen history panel entity picker #14938
Conversation
@karwosts |
I don't have a mobile connected to my dev environment, but based on my understanding I would assume so? I don't think there's any special "mobile" renderer, it's all just treated like rendering a webpage regardless of client. I can put the chrome browser to mimic the dimensions of certain mobiles, like for example here is Pixel 5, vertically and horizontally. Looks like most mobiles have a width of <400 pixels, so I believe it will just fill the whole width as best as possible in the vertical mode. |
What do you think about filling a whole width in both portrait and landscape modes? |
I think in my opinion a maximum cap on the width is appropriate. Otherwise you have someone with a large 4k monitor gets a dropdown box that's 2 feet wide... seems a bit absurd to me. |
Or may be this variant:
? |
No, I think unfortunately that still has the same concern for me. Anytime you have "... and then fill all remaining width", it means someone will have a 3000 pixel wide entity picker, which I don't think is correct. I'm happy with the current behavior. If you think there is a specific deficiency with the implementation, please raise it, but otherwise I will await further comments or Member review. |
I think your implementation is anyway very useful, will be happy to get it)))). |
Do you agree this might be a better solution? CleanShot.2023-01-03.at.12.12.13.mp4 |
Closing as obsolete |
Proposed change
The current history panel entity picker gets several complaints for being too narrow. It is by default around 230 pixels, and any medium to long entity names get cut off and are hard to distinguish.
Also, at around 900 pixels in width the whole picker squishes up against the right side and is cut in half.
Current behavior:
This change tweaks the wrapping behavior in the history panel, and tries to fix the entity picker at 400 pixels, which aligns nicely width the width of the 3 picker chips, and should allow for seeing much more of entity names. And it lets the whole picker wrap more instead of squishing up against the right edge.
Proposed behavior:
ha-target-pickers instanced by ha-selector-targets on other panels are unchanged, they don't seem to have this problem.
Area and Devices picker are unchanged, their names are not nearly as long, so don't seem to have this problem.
Type of change
Example configuration
Additional information
This PR fixes or closes issue:
fixes Dropdown box does not show entire entity name #13671
fixes choose entity drop down too narrow #14897
This PR is related to issue or discussion:
History - Choose (Area|Device|Entity) drop down search box width too small #13648
https://community.home-assistant.io/t/increase-the-width-of-the-search-bar-on-new-history-browser/437439
Link to documentation pull request:
Checklist
If user exposed functionality or configuration variables are added/changed: