Skip to content

Mobile PWA: compact secondary panel controls overlap iPhone status bar (missing safe-area insets) #2908

Closed

Description

@dillonzq

Summary

On iPhone (PWA, viewport-fit=cover), the compact secondary right panel renders its controls underneath the system status bar. The close/info entry points are pushed into the status-bar area and their touch targets conflict with system UI.

Root cause

CompactSecondaryPanelShelf is portaled to document.body with fixed inset-y-0 positioning (CompactSecondaryPanelShelf.tsx:175):

"fixed inset-y-0 right-0 flex h-(--bb-shell-height) touch-pan-y select-none flex-col overflow-hidden border-l border-border-seam bg-background outline-none",

Because it is portaled outside AppLayout, it does not inherit the four-side safe-area padding that AppLayout already applies (pt-[env(safe-area-inset-top)] pr-[env(safe-area-inset-right)] pb-[var(--bb-safe-area-bottom,env(safe-area-inset-bottom))] pl-[env(safe-area-inset-left)]).

Suggested fix

Reuse the same safe-area padding classes on the shelf container so the background still extends edge to edge but interactive content stays inside the safe area. I have a minimal patch ready (component change + regression test, 14/14 component tests passing) and will open a PR linked to this issue.

Environment

  • bb 0.41.0
  • iPhone PWA (iOS Safari standalone mode, viewport-fit=cover)

Activity

  1. added theissue type on Sep 2, 2026
  2. added
    mobile
    confirmed-repro
    on Sep 2, 2026
  3. bb-slop-cop commented on Sep 2, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

  4. added a commit that references this issue on Sep 3, 2026
    a8de819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-repromobile

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions