Skip to content

🪧 fix: Open the Mobile Drawer Below a Site Banner - #16611

Merged
berry-13 merged 1 commit into
devfrom
berry-13/followup-218-banner-over-drawer
Oct 1, 2026
Merged

berry-13 merged 1 commit into
devfrom
berry-13/followup-218-banner-over-drawer

Conversation

@berry-13

@berry-13 berry-13 commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

On a phone, when a deployment configures a site banner, opening the sidebar drawer put its header strip under the banner. The banner sits above the app and is sticky over it, while the drawer was fixed to the top of the viewport, so the banner covered the drawer's close toggle, panel switcher, New chat and account menu. The only way to close the drawer by pointer was to dismiss the banner first, and a persistent banner cannot be dismissed.

The drawer is now positioned inside the app container instead of the viewport, as the scrim and the conversation pane already are, so it opens below the banner and runs to the bottom of the screen. Without a banner the container starts at the top of the screen, so nothing moves.

Fixes berry-13#218. Stacked on #16605, since it changes the drawer in UnifiedSidebar.tsx, which #16248 owns.

Type of change

  • Bug fix

Testing

Tested environments/configuration:

  • Chromium at 390x844, loaded at phone width, with a configured persistent site banner, light and dark

Automated tests:

  • e2e/specs/mock/scenarios/mobile-drawer-banner.spec.ts: with a banner, in light and dark, the drawer opens below it and down to the bottom of the screen, and the close toggle, panel switcher and New chat are the elements a tap lands on (the close toggle then closes the drawer); without a banner the drawer still covers the full screen height
  • The banner scenario fails against the previous fixed-position drawer (its top at 0, under the 27px banner) and passes with this change
  • npx jest src/components/UnifiedSidebar (client): 10 suites, 56 tests pass
  • reviewctl precheck (ESLint, Prettier, import order, design-rule suppressions, typecheck, related jest): pass

Screenshots / recordings

Phone width (390px) with a persistent site banner, drawer open. Each pair is before then after, light then dark.

Before and after, light and dark

Risk / compatibility

None expected. Without a banner the drawer's geometry is unchanged, since the app container then starts at the top of the screen and is the full width the drawer's 100% and 80% widths were already measured against.

Checklist

  • I reviewed my own changes
  • Relevant tests have been added or updated
  • Existing relevant tests pass
  • The change does not introduce new warnings or errors

@berry-13
berry-13 marked this pull request as ready for review October 1, 2026 10:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T16:41:55.759229Z 6721ce8 New commits
🔒 Security Review ✅ Completed 2026-10-01T10:28:16.895158Z 2f4519e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@berry-13
berry-13 added this pull request to stack #16613 October 1, 2026 10:32
@berry-13
berry-13 force-pushed the berry-13/followup-218-banner-over-drawer branch from 2f4519e to d01eeea Compare October 1, 2026 10:32
@codegraph-librechat codegraph-librechat Bot added the 🗺️ Chat UI Shell codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9) label Oct 1, 2026
@berry-13
berry-13 requested a review from danny-avila as a code owner October 1, 2026 14:00
@berry-13
berry-13 removed this pull request from stack #16613 October 1, 2026 14:02
@berry-13
berry-13 force-pushed the berry-13/followup-218-banner-over-drawer branch from d01eeea to 4b28341 Compare October 1, 2026 14:05
@berry-13
berry-13 added this pull request to stack #16625 October 1, 2026 14:05
@berry-13
berry-13 force-pushed the berry-13/followup-218-banner-over-drawer branch from 4b28341 to 71c4fdc Compare October 1, 2026 15:59
Base automatically changed from berry-13/followup-214-new-chat-switch-to-history to dev October 1, 2026 16:39
The drawer was fixed to the viewport, so a configured site banner, which
sits above the app and is sticky over it, painted over the drawer's header
strip and left its close toggle, panel switcher and New chat untappable.
The drawer is now absolute inside the app container, as the scrim and the
pane already are, so it opens below the banner. Without a banner the
container starts at the top of the screen and nothing moves.
@berry-13
berry-13 force-pushed the berry-13/followup-218-banner-over-drawer branch from 71c4fdc to 6721ce8 Compare October 1, 2026 16:39
@berry-13
berry-13 merged commit 44f4251 into dev Oct 1, 2026
24 checks passed
@berry-13
berry-13 deleted the berry-13/followup-218-banner-over-drawer branch October 1, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗺️ Chat UI Shell codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant