Conversation
…t cover nav bar Playwire's "flex" ad unit injects #pw-oop-flex_container as body's first child. Since body uses flex/flex-row/overflow-hidden for its own layout, the ad's wrapper (unlike its already-fixed inner content) becomes an untracked flex item that distorts the layout and lets the ad's fixed/max-z-index creative cover the nav bar with no reserved space. Mirrors the existing bottom_rail handling by taking the container out of flex flow, and adds a --flex-ad-height custom property (kept in sync via ResizeObserver/MutationObserver) so body's padding-top pushes content below the ad instead of under it.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Walkthrough
ChangesAd layout and integration
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant AdContainer
participant ResizeObserver
participant MutationObserver
participant BodyStyle
AdContainer->>ResizeObserver: report rendered height
ResizeObserver->>BodyStyle: set --flex-ad-height
MutationObserver->>BodyStyle: reset or resync after DOM changes
BodyStyle->>BodyStyle: update body padding-top
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
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 `@index.html`:
- Around line 538-543: Update the RAMP script URL in the Gum Gum header ads
block to the protocol-relative form used by the adjacent script, preserving the
existing host and path so InGamePromo.ts can load window.ramp.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
Add approved & assigned issue number here:
Resolves #(issue number)
Description:
Describe the PR.
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
DISCORD_USERNAME