fix(website): mobile responsiveness improvements#441
Conversation
FadeIn.tsx — fix SSR hydration mismatch (Sentry #104333516, #104333514):
Framer Motion applies initial={{ opacity:0, y:16 }} before React hydrates,
causing the server-rendered DOM (opacity:1) to mismatch the client DOM.
Fix: render a plain <div> on server + during hydration (isMounted=false),
then swap to <motion.div> after useEffect fires. No mismatch, no flash.
instrumentation-client.ts — filter browser extension noise (Sentry #106232192, #105431404):
Add beforeSend hook to drop two known extension-only error patterns:
- "Cannot assign to read only property 'pushState'" — extensions wrap
history.pushState before the app loads, making it read-only
- "Object Not Found Matching Id:N, MethodName:update" — Chrome DevTools
Protocol messages from extensions interacting with CodeMirror
GitHub issue #435 (Object Not Found) closed as noise.
Issues #436/#437 (hydration) resolved by the FadeIn fix.
Issue #434 (pushState) silenced via beforeSend filter.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Wrap FadeIn in memo() to prevent unnecessary re-renders from parent state changes that don't affect the component's own props - Log suppressed extension noise errors to console.debug in development so they remain visible locally while staying off Sentry in production Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Navbar: enlarge hamburger button to 44×44px (w-11 h-11) for iOS touch target minimum - Playground: hide 'SQL Playground' label on mobile to prevent toolbar overflow; add min-h-[240px] to each panel so stacked layout is usable on small screens; increase copy button padding - CodeExamples: add flex-wrap to tab bar so tabs don't overflow on 320px phones - Hero: add min-w-0 to grid columns to ensure pre blocks scroll within bounds; increase 'parsed in <1ms' from 10px to 12px (text-xs) - StatsBar: make counter text text-3xl on mobile (was text-4xl, too wide for 2-col grid on 320px) - AnimatedCounter: same text-3xl sm:text-4xl responsive scaling - VscodeSection: reduce gap from gap-10 to gap-6 md:gap-10 on mobile - BenchmarksContent: reduce table cell padding to px-3 py-3 on mobile (was px-6 py-4), reducing table width by ~120px to fit 390px viewport Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task —— View job PR Review: Mobile Responsiveness ImprovementsReview Checklist
✅ Code Quality & Best PracticesExcellent implementation quality across all components:
✅ Potential Issues & BugsNo critical issues found. Minor observations:
✅ Performance ConsiderationsOptimized for performance:
✅ Security ConcernsNo security issues identified:
✅ Test CoverageManual testing recommended: Since these are UI/responsive changes, automated unit tests have limited value. The PR includes a comprehensive test plan:
Recommendation: Consider adding visual regression tests or component tests for critical responsive breakpoints in the future. 🎉 Final VerdictAPPROVED - This is a high-quality mobile responsiveness implementation that addresses all stated issues without introducing regressions. The changes demonstrate strong understanding of responsive design principles, accessibility requirements, and performance considerations. Highlights:
|
|
Claude finished @ajitpratap0's task —— View job PR Review: Mobile Responsiveness ImprovementsReview Checklist
✅ Code Quality & Best PracticesExcellent implementation quality across all components:
✅ Potential Issues & BugsNo critical issues found. Minor observations:
✅ Performance ConsiderationsOptimized for performance:
✅ Security ConcernsNo security issues identified:
✅ Test CoverageManual testing recommended: Since these are UI/responsive changes, automated unit tests have limited value. The PR includes a comprehensive test plan:
Recommendation: Consider adding visual regression tests or component tests for critical responsive breakpoints in the future. 🎉 Final VerdictAPPROVED - This is a high-quality mobile responsiveness implementation that addresses all stated issues without introducing regressions. The changes demonstrate strong understanding of responsive design principles, accessibility requirements, and performance considerations. Highlights:
|
Summary
Mobile/responsive audit of gosqlx.dev identified issues across 8 components. This PR fixes all HIGH and MEDIUM severity items found.
Changes
Navbarw-11 h-11) — was 36×32px, below iOS minimumPlaygroundmin-h-[240px]on each stacked panel; copy button padding increasedCodeExamplesflex-wrapto tab bar so "Parse/Format/Validate/Lint" wraps on 320px phonesHeromin-w-0on grid columns ensures<pre>blocks scroll within card bounds;text-[10px]→text-xs(12px min) for "parsed in <1ms"StatsBartext-3xl sm:text-4xl— wastext-4xl, "1,380,000+" wraps on 2-col grid at 320pxAnimatedCountertext-3xl sm:text-4xlscaling to match StatsBar prefixVscodeSectiongap-10togap-6 md:gap-10on mobile stackBenchmarksContentpx-3 py-3 sm:px-6 sm:py-4— reduces table width by ~120px, fixing 94–205px overflow on 390px viewport (scroll hint already present)Audit methodology
Test plan
🤖 Generated with Claude Code