fix: banner offset - #42073
Conversation
WalkthroughThe change centralizes banner offsets, applies responsive offsets to fixed pages, and updates admin settings containers to use parent-relative height calculations. ChangesBanner-aware layout
Estimated code review effort: 2 (Simple) | ~15 minutes Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant PageWrapper
participant BannerState
participant DeviceState
participant Wrapper
participant PageBody
BannerState->>PageWrapper: report banner visibility
DeviceState->>PageWrapper: report mobile status
PageWrapper->>PageWrapper: calculate bannerOffset
PageWrapper->>Wrapper: apply bannerOffset to positioning
PageWrapper->>PageBody: apply bannerOffset to height
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/client/src/pages/common/PageWrapper.tsx`:
- Around line 90-95: Update the bannerOffset calculation in PageWrapper so
visible showBaseUrlBanner applies the appropriate mobile or desktop offset for
non-fixed wrappers as well as fixed ones. Preserve zero offset when the banner
is hidden, and ensure the resulting margin behavior aligns with PageHeader
without requiring external consumers to compensate.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 7e3684aa-2b16-4ab8-a8c3-aa3b0a7f3206
📒 Files selected for processing (5)
app/client/src/pages/AdminSettings/Authentication/AuthPage.tsxapp/client/src/pages/AdminSettings/components.tsxapp/client/src/pages/common/PageHeader.tsxapp/client/src/pages/common/PageWrapper.tsxapp/client/src/pages/common/bannerOffsets.ts
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/30666365547. |
|
Deploy-Preview-URL: https://ce-42073.dp.appsmith.com |
Description
Push the fixed page header (and fixed page layout) down by the banner height when the base-URL missing banner is shown, using shared desktop/mobile offset constants so the header no longer covers the banner and admin pages don’t sit underneath it.
Fixes #42072
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/30789245853
Commit: e18fd1c
Cypress dashboard.
Tags:
@tag.AllSpec:
Mon, 03 Aug 2026 07:13:05 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit