Open Soukyuu opened 1 year ago
Erf... just saw PR https://github.com/thomasloven/hass-browser_mod/pull/619, this will most likely fix what I am experiencing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
pr is not merged. unstale.
I am also still experiencing this issue. On iOS the popup is always opening up fullscreen no matter what I do.
While not an official fix, in order to get non full screen popups on my misbehaving mobile devices I've been using card-mod with popup size set to fullscreen
. I've tweaked it a lot and I'm pretty happy with the results:
size: fullscreen
style: |
ha-dialog {
--mdc-dialog-min-width: 90vw !important;
--mdc-dialog-min-height: fit-content !important;
--mdc-dialog-max-width: var(--mdc-dialog-min-width) !important;
--mdc-dialog-max-height: var(--mdc-dialog-min-height) !important;
--ha-dialog-border-radius: var(--ha-card-border-radius) !important;
--vertical-align-dialog: center !important;
--header-height: 5vh !important;
--footer-height: var(--header-height) !important;
--padding-y: 8px !important;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
.content {
height: fit-content !important;
max-height: 90vh !important
pointer-events: unset !important;
padding: 0 !important;
}
.container {
padding: 0 !important;
}
card_mod:
style: |
ha-dialog {
--mdc-dialog-min-width: 90vw !important;
--mdc-dialog-min-height: fit-content !important;
--mdc-dialog-max-width: var(--mdc-dialog-min-width) !important;
--mdc-dialog-max-height: var(--mdc-dialog-min-height) !important;
--ha-dialog-border-radius: var(--ha-card-border-radius) !important;
--vertical-align-dialog: center !important;
--header-height: 5vh !important;
--footer-height: var(--header-height) !important;
--padding-y: 8px !important;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
.content {
height: fit-content !important;
max-height: 90vh !important
pointer-events: unset !important;
padding: 0 !important;
}
.container {
padding: 0 !important;
}
The same styles can/should also be set in the popup style field for more responsiveness on devices that are not experiencing this bug. From what I can tell it may be an issue with older Android devices, as it does not happen on my phone but does on my Android tablet dashboard displays.
Frustrated this still isnt fixed yet
My Home Assistant version: 2023.9.2
What I am doing: I have a card configured as follows:
What I expected to happen: When clicking on the entity, the size should be exactly 200px on all resolutions
What happened instead: On desktop (2K resolution), the popup looks as expected (minus the weird white lines):
On mobile (or a small width window), the popup is always fullscreen:
Minimal steps to reproduce: This happens with all popup cards I have since I moved from the deprecated popup-card component to browser_mod, even if the popup size would definitely fit on screen. Try exaggerating with:
Error messages from the browser console:
By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:
[x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[x] Have made sure I am using the latest version of the plugin.
[x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.