You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix horizontal overflow on ultra-small screens (320px-360px)
Added comprehensive 360px breakpoint across all components to prevent horizontal scrolling on the smallest mobile devices:
**Landing Page (index.module.css:232-280):**
- Added 360px breakpoint with aggressive size/padding reduction
- Reduced hero padding to 1.25rem 0.5rem (8px sides)
- Scaled down title to 1.75rem with word-break for wrapping
- Reduced all gaps and spacing throughout
- Smaller buttons (0.9rem font, reduced padding)
- Compact badges (16px height, 0.375rem gap)
**HeroCodePreview (styles.module.css:140-179):**
- Limited preview width to calc(100vw - 1rem) to prevent overflow
- Added word-break and pre-wrap to force code wrapping
- Ultra-compact terminal (8px buttons, 0.65rem title font)
- Reduced code font to 0.75rem with horizontal scroll fallback
- Applied wrapping to both pre and code elements
**CodeShowcase (styles.module.css:222-290):**
- Added overflow: hidden to tab container
- Made tabs flex with min-width: 0 to prevent expansion
- Ultra-compact tabs (0.7rem font, 0.5rem padding)
- Text-overflow ellipsis on code block headers
- Reduced code blocks to 0.7rem font with proper overflow handling
- Ensured all containers respect viewport boundaries
**FeatureGrid (styles.module.css:191-238):**
- Reduced section padding to 1.5rem 0.5rem
- Compact feature cards (1rem padding)
- Smaller icons (2rem) and fonts throughout
- Code blocks: 0.65rem font with horizontal scroll
- Improved line-height for better readability on small text
**QuickStartSteps (styles.module.css:257-327):**
- Compact step numbers (40px) and content
- Ultra-small copy button (0.65rem font)
- Reduced all padding and gaps
- Code blocks: 0.7rem font with overflow-x auto
- Smaller CTA buttons (0.9rem font)
**GitHubStats (styles.module.css:67-84):**
- Added 360px breakpoint
- Reduced stats to 1.125rem font
- Ultra-compact labels (0.6rem)
- Minimal gaps (0.5rem)
All changes ensure no horizontal scrolling occurs on devices as small as 320px width while maintaining readability and usability.
0 commit comments