Skip to content

fix: resolve mobile menu issues, responsiveness, and routing errors#60

Merged
maskedsyntax merged 1 commit intomainfrom
fix/mobile-menu-and-routing
Feb 10, 2026
Merged

fix: resolve mobile menu issues, responsiveness, and routing errors#60
maskedsyntax merged 1 commit intomainfrom
fix/mobile-menu-and-routing

Conversation

@maskedsyntax
Copy link
Member

  • Fix mobile menu auto-closing by removing conflicting event handlers

    • Remove global document listeners (mousedown/touchstart) that caused double-toggling
    • Simplify toggle logic to use single onclick handler
    • Remove unnecessary preventDefault/stopPropagation calls
    • Move menu outside nav element to prevent overflow clipping
  • Improve mobile responsiveness across components

    • Add overflow-x: hidden to html, body, and main elements
    • Fix horizontal scrolling issues on mobile devices
    • Adjust container widths and padding for mobile breakpoints
    • Fix HowItWorks section code blocks to wrap properly on small screens
    • Ensure navbar and mobile menu respect viewport constraints
  • Fix 404 error on /docs page reload

    • Add fallback: 'index.html' to adapter-static configuration
    • Enables client-side routing for static builds on Vercel
  • Fix 500 error from Svelte 5 syntax incompatibility

    • Remove mixed event handler syntax (on:touchstart)
    • Use consistent Svelte 5 event handler format
  • Update build output directory to 'dist' for Vercel compatibility

    • Change from 'build' to 'dist' in svelte.config.js
    • Update .gitignore to include dist directory

- Fix mobile menu auto-closing by removing conflicting event handlers
  - Remove global document listeners (mousedown/touchstart) that caused double-toggling
  - Simplify toggle logic to use single onclick handler
  - Remove unnecessary preventDefault/stopPropagation calls
  - Move menu outside nav element to prevent overflow clipping

- Improve mobile responsiveness across components
  - Add overflow-x: hidden to html, body, and main elements
  - Fix horizontal scrolling issues on mobile devices
  - Adjust container widths and padding for mobile breakpoints
  - Fix HowItWorks section code blocks to wrap properly on small screens
  - Ensure navbar and mobile menu respect viewport constraints

- Fix 404 error on /docs page reload
  - Add fallback: 'index.html' to adapter-static configuration
  - Enables client-side routing for static builds on Vercel

- Fix 500 error from Svelte 5 syntax incompatibility
  - Remove mixed event handler syntax (on:touchstart)
  - Use consistent Svelte 5 event handler format

- Update build output directory to 'dist' for Vercel compatibility
  - Change from 'build' to 'dist' in svelte.config.js
  - Update .gitignore to include dist directory
@vercel
Copy link

vercel bot commented Feb 10, 2026

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

Project Deployment Actions Updated (UTC)
hashprep Ready Ready Preview, Comment Feb 10, 2026 2:02pm

@maskedsyntax maskedsyntax merged commit f15d5f3 into main Feb 10, 2026
2 checks passed
@maskedsyntax maskedsyntax deleted the fix/mobile-menu-and-routing branch February 10, 2026 14:02
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