Skip to content

feat(wikipedia-report): show the whole influence map in the homepage popup - #646

Merged
mohanadft merged 1 commit into
mainfrom
feat/homepage-popup-new-map
Dec 1, 2026
Merged

mohanadft merged 1 commit into
mainfrom
feat/homepage-popup-new-map

Conversation

@mohanadft

Copy link
Copy Markdown
Collaborator

Summary

  • The homepage report popup already loaded the new simplified influence map (influence-map.webp), but cropped it to a 180px strip (140px on phones) with object-fit: cover, so only a slice of the middle was visible.
  • It now shows the whole map, the same image as on the report page. Its height is capped (48dvh on desktop, 40dvh on phones) and it is letterboxed on white, so the title and "Read the report" button still fit on short screens.
  • The alt text now matches the report page’s description of the map.

Test plan

  • Clear localStorage and open the homepage on desktop; the popup shows the full, uncropped map
  • Same on a phone-width viewport (bottom sheet); the map is whole and the button is reachable
  • On a short laptop screen (~700px tall) the popup still fits or scrolls cleanly

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6de9d4a
Status: ✅  Deploy successful!
Preview URL: https://3a4b18f8.website-aun.pages.dev
Branch Preview URL: https://feat-homepage-popup-new-map.website-aun.pages.dev

View logs

@mohanadft
mohanadft merged commit 4a6f078 into main Dec 1, 2026
5 checks passed
@mohanadft
mohanadft deleted the feat/homepage-popup-new-map branch December 1, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant