-
Notifications
You must be signed in to change notification settings - Fork 186
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
Popups not respecting size/style on mobile app/small width #639
Comments
Erf... just saw PR #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 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:
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
Have made sure I am using the latest version of the plugin.
Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
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.
The text was updated successfully, but these errors were encountered: