Skip to content

Conversation

@dergigi
Copy link
Member

@dergigi dergigi commented Dec 25, 2025

The world map on /map was cut off on mobile devices because the SVG lacked a viewBox attribute. This fix extracts the width/height from the SVG and adds a proper viewBox during build, enabling correct responsive scaling.

  • Add viewBox attribute to SVG in getStaticProps for proper aspect ratio preservation
  • Remove unnecessary overflow-x-auto and overflow: hidden from map container
  • Simplify CSS by removing redundant max-width declarations

@vercel
Copy link

vercel bot commented Dec 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
os-website Ready Ready Preview, Comment Dec 25, 2025 4:20pm

@dergigi dergigi self-assigned this Dec 25, 2025
@dergigi dergigi merged commit 50e0aac into master Dec 25, 2025
3 checks passed
@dergigi dergigi deleted the fix-map-mobile branch December 25, 2025 16:21
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.

2 participants