Skip to content

Safe areas #26818

@timmo001

Description

@timmo001

Description

Continuation of #25566

Referenced in:

PRs/Branches:

These branches may need revisiting later on, or can be dropped if they are implemented above:

Will focus on these in order, and make changes as needed. Ideal path is to keep the frontend side mostly unchanged and allow overrides from mobile app using css variables.

Styles set for testing in main.globals.ts:

    --app-safe-area-inset-top: 64px;
    --app-safe-area-inset-bottom: 36px;
    --app-safe-area-inset-left: 48px;
    --app-safe-area-inset-right: 24px;

Known real safe areas:

Android (Pixel 10) - Nav bar height only:

    --app-safe-area-inset-bottom: 36px;

Android (Pixel 10) - Landscape (left):

    --app-safe-area-inset-bottom: 36px;
    --app-safe-area-inset-left: 68px;

Android (Pixel 10) - Landscape (right):

    --app-safe-area-inset-bottom: 36px;
    --app-safe-area-inset-right: 68px;
Checklist per-panel/section:
  • Loading/Onboarding
  • Dialogs
  • Bars (toolbars, app bars)
  • Sidebar
  • Dashboards
    • Home
    • Areas
    • Custom
    • Map
  • History
  • Logbook/Activity
  • Calendar
  • Todo
  • Media
  • Energy
    • Setup
    • Dashboard
  • Devtools
  • Profile
  • Settings
  • Settings -> HA Cloud
  • Settings -> Devices/Services -> Integrations
  • Settings -> Devices/Services -> Integrations -> Integration
  • Settings -> Devices/Services -> Application Credentials
  • Settings -> Devices/Services -> Devices
  • Settings -> Devices/Services -> Device
  • Settings -> Devices/Services -> Entities
  • Settings -> Devices/Services -> Helpers
  • Settings -> Automatons
  • Settings -> Automatons -> Editor
  • Settings -> Automatons -> Editor -> Sidebar (Right/Bottom)
  • Settings -> Scenes
  • Settings -> Scenes -> Editor
  • Settings -> Scripts
  • Settings -> Scripts -> Editor
  • Settings -> Automatons -> Editor -> Sidebar (Right/Bottom)
  • Settings -> Blueprints
  • Settings -> Areas
  • Settings -> Areas -> Area (editor)
  • Settings -> Areas -> Labels
  • Settings -> Areas -> Zones
  • Settings -> Voice Assistants
  • Settings -> Tags
  • Settings -> People
  • Settings -> System
  • Settings -> System -> *
  • Settings -> About
  • Settings -> Addons (ha-panel-custom)
    • List
    • Add
    • Configure
  • Addon panels (ha-panel-custom)

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions