hass-browser_mod icon indicating copy to clipboard operation
hass-browser_mod copied to clipboard

FR: Have popup size change depending on device type

Open jimz011 opened this issue 2 years ago • 2 comments

In Home Assistant when opening a popup it will show as a 'small' popup on a desktop/tablet and it will show full-screen on a phone.

I have tried to mimic this behaviour with browser_mod, but when I do a fire-dom-event with a popup and the size is 'normal' or 'wide' it will also show up as a small popup on a phone.

With this I hope there is enough interest for this to make the popups behave more like they used to in browser_mod 1.x and how popups behave in e.g. Home Assistant 2022.3.x. So a normal or wide popup on the desktop/tablet and a full-screen popup on a phone.

jimz011 avatar Feb 25 '23 23:02 jimz011

I actually like the way it works now since it's consistent across all devices. Also I like how all my browser_mod popups are centered. I honestly hate the HA 2023.3 more-info dialogs on smartphones since it forces all content to the top and I don't have a blurred backround anymore either.

ASNNetworks avatar Mar 25 '23 02:03 ASNNetworks

I'd love to see this either as an additional option native for the size select that simply mimics the default behaviour for popups for the current device type, or as additional size selects (e.g. size_browser, size_app) that can be be used to overwrite the default size behaviour.

TheTimmaeh avatar Apr 08 '23 14:04 TheTimmaeh