Repository navigation
fix(panel): keep the bottom bar on screen on iPhones - #1141
Merged
Merged
Conversation
Home Assistant 2026.8+ pads custom panels by the safe-area insets. The admin panel is a 100dvh flex column, so the top padding pushed it a notch's height past the bottom of the screen and the phone bottom bar disappeared off an iPhone in the companion app. The panel now opts out with handle_safe_area (only where the core has the argument; the 2024.7 floor does not) and pads itself by HA's --safe-area-inset-* variables inside its 100dvh, with the bottom bar taking the bottom inset so its background runs to the screen edge. The More sheet, toast, dialogs and photo lightbox read the same variables, and the More sheet no longer reaches under the status bar. Fixes #1140
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Home Assistant 2026.8 started padding custom panels by the phone's safe area, so on an iPhone the admin panel's bottom bar sat below the home indicator and was cut off. The panel now opts out of that padding and handles the insets itself, keeping the bar on screen above the indicator.
Fixes #1140
Tested on ha-dev through browserless with simulated iPhone insets, and
tests/test_panel_safe_area.pycovers the registration flag and the inset handling.