Skip to content

fix(page): the map stops short of the screen's bottom on four themes - #48

Merged
Ardnived merged 1 commit into
mainfrom
fix/atlas-page-margin-collapse
Oct 1, 2026
Merged

Ardnived merged 1 commit into
mainfrom
fix/atlas-page-margin-collapse

Conversation

@Ardnived

@Ardnived Ardnived commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • On the Atlas page the map now reaches the bottom of the screen on Twenty Twenty-Four, Twenty Twenty-Five, PopularFX and Mesmerize. It used to stop 10–21px short.
  • One CSS line: display: flow-root instead of block, so the crawlable content's heading margin can no longer move the element.

Test results

  • Lean gate: ✓ pnpm test:all — 12 files linted, 241 assertions, 0 render failures
  • Targeted: the browser lane (test(browser): run the real widget in real themes, in a browser #44), with this change applied, runs twentytwentyfour,twentytwentyfive,popularfx,mesmerize with 0 failures, down from 13 "the element runs to the bottom of the screen" failures without it.
  • Build: N/A

Manual verification

  1. On a Twenty Twenty-Five site, open the Atlas page at 1280×720. The map meets the bottom edge, with no strip of page background below it.

Notes for reviewer

  • Why it happened. The SEO content inside <sahaj-atlas> opens with an <h1> whose top margin collapsed through the plain block element. atlas-page.js measured the element while pushed down, then the widget replaced the content and the element moved up. Nothing re-measures: fix(page): a header that grows after load is never re-measured #41 covers the missing observer, and body's size does not change anyway.
  • flow-root is block-level, so this is still the "block box with a definite height" opt-in from SahajAtlasWeb#170. Nothing in the widget reads display.
  • No version bump: releasing is your call. The next release PR picks this up.
  • Small enough (1 file, under 40 lines) that the loop's adversarial review skips it by policy.
Detail

Measured on Twenty Twenty-Five at 1280×720:

  • Before: top 102 at load, 90 once the widget boots. --sahaj-atlas-top stays at 102, so the element ends at 708 of 720.
  • After: top and offset both 90, and the element ends at 720.

PopularFX: top and offset both 75, element ends at 720.

Closes #46

🤖 Generated with Claude Code

The SEO content the plugin prints inside <sahaj-atlas> opens with a heading
whose top margin collapsed through the plain block element and pushed it
down. atlas-page.js measured the element there; the widget then replaced
that content, the element moved up, and the map stopped 10–21px short of
the screen's bottom on Twenty Twenty-Four, Twenty Twenty-Five, PopularFX and
Mesmerize. `display: flow-root` keeps child margins inside and is still the
block box with a height that makes the map contained.

Measured on Twenty Twenty-Five at 1280×720: before, top 102 → 90 at boot
with the offset stuck at 102; after, top and offset 90, element ends at 720.

Closes #46

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-bot

Copy link
Copy Markdown
Contributor

I could not request a reviewer here, so this is the step left for you.

  • request a reviewer — GitHub said: Review cannot be requested from pull request author. - https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request

🤖 sydevs dispatcher

@Ardnived
Ardnived merged commit 965f927 into main Oct 1, 2026
12 checks passed
@Ardnived
Ardnived deleted the fix/atlas-page-margin-collapse branch October 1, 2026 18:29
sydevs-bot pushed a commit that referenced this pull request Oct 1, 2026
PR #44 landed the browser lane and PR #48 changed the Atlas element's display,
so `package.json` and `AGENTS.md` both conflicted.

`package.json` keeps both lanes: `test:browser` from main, and `test:measure`
inside `test:all` from this branch. The browser lane stays out of `test:all` —
it needs a key and the network.

`AGENTS.md` keeps every trap from both sides. The lane counts are rewritten
rather than taken from either side, because neither was right after the merge:
four lanes run on wp-playground and the fifth runs in plain node, and
`test:all` runs the first four, not the first three. The measure lane's ⚠ no
longer says PR #44 fails to retire it; the reason is now that the browser lane
is local-only, which is what the ⚠ has to say once #44 is merged.

`assets/atlas-page.css` merged clean, and its two changes are independent:
`flow-root` stops a child margin escaping, while this branch's `margin-top` on
the same element still collapses with a parent's, which is the case the
additive offset walk exists for.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AhtySqkGuL4p924YTbLZZh
@Ardnived Ardnived mentioned this pull request Oct 2, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

fix(page): the map stops short of the screen's bottom on four themes

2 participants