Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: mobile overflow on homepage for narrow screens (ZFlip6)#4336

Merged
ComputelessComputer merged 5 commits intomainfrom
devin/1772447454-fix-mobile-overflow
Mar 3, 2026
Merged

fix: mobile overflow on homepage for narrow screens (ZFlip6)#4336
ComputelessComputer merged 5 commits intomainfrom
devin/1772447454-fix-mobile-overflow

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Mar 2, 2026

Summary

Fixes horizontal text overflow on the homepage when viewed on narrow mobile devices (e.g. Samsung ZFlip6 at ~360px width). Reported via community feedback — text was going off the sides and not wrapping properly.

Root cause: The hero section's flex containers (flex-col items-center) lacked explicit width constraints. When the Lora serif webfont loaded (which is significantly wider than the system fallback font), the flex children expanded to their intrinsic content width (~423px), exceeding the 360px viewport. Because items-center doesn't stretch children, and flex items default to min-width: auto, the content couldn't shrink below its text width.

Changes

  1. Added overflow-x-hidden to the homepage <main> container — consistent with solution pages which already have this, acts as a safety net
  2. Added w-full min-w-0 to the hero flex containers (parent div, section, inner div) — this is the core fix, forcing flex children to respect parent width instead of expanding to content width
  3. Added break-words (overflow-wrap: break-word) to h1 and subtitle — allows the em-dash word segment "Meetings—No" to break if it exceeds the container width
  4. Reduced hero title from text-4xltext-2xl on mobile (keeps sm:text-5xl for larger screens)
  5. Reduced hero subtitle from text-lgtext-base on mobile (keeps sm:text-xl for larger screens)
  6. Made email submit button padding responsive (px-4 on mobile, sm:px-6 on larger screens)

Testing performed

Verified on deploy preview at 360px viewport width using Chrome DevTools responsive mode. The h1 element width went from 423px (overflowing) to 326px (within the 328px available space). Confirmed text wraps correctly even after Lora webfont finishes loading.

Hero section at 360px after fix

Review & Testing Checklist for Human

  • Verify hero title size on standard mobile phones (~375px width, e.g. iPhone, Pixel) — the text-4xltext-2xl change is aggressive and affects ALL mobile devices below sm breakpoint. Confirm the title doesn't look too small on non-narrow phones.
  • Test on a real narrow device or emulate ~360px width to confirm the overflow is fully fixed (testing was done via DevTools, not a physical device)
  • Check desktop layout is unaffected — the added w-full min-w-0 classes on the hero section containers should be harmless at desktop widths, but worth a quick visual check
  • Verify break-words doesn't cause awkward mid-word breaks at intermediate viewport widths (e.g. ~400-500px) where the Lora font might cause partial overflow

Notes

  • The fmt CI check fails on pre-existing formatting issues in unrelated desktop app files (tab-content.tsx, view.tsx, session.tsx) — not caused by these changes and not a required check
  • Pre-existing typecheck error in search.tsx (unrelated to these changes)
  • Requested by: @ComputelessComputer
  • Devin Session

- Add overflow-x-hidden to main container (consistent with solution pages)
- Reduce hero title from text-4xl to text-3xl on mobile for narrow devices like ZFlip6
- Reduce submit button horizontal padding on mobile (px-4 vs px-6) to prevent cutoff

Co-Authored-By: John <[email protected]>
@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 9fc8303
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69a69664ae90590008f95f65

@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 9fc8303
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69a69664fb3912000835a4b7
😎 Deploy Preview https://deploy-preview-4336--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 4 commits March 3, 2026 07:42
…screens

- Reduce hero title from text-3xl to text-2xl on mobile (h1 was 423px at text-3xl on 360px viewport)
- Reduce subtitle from text-lg to text-base on mobile
- Add max-w-full and overflow-hidden to hero text container to prevent overflow

Co-Authored-By: John <[email protected]>
- Add break-words (overflow-wrap: break-word) to h1 and subtitle
- This handles the em-dash in 'Meetings—No' creating an unbreakable word
- The Lora serif font is significantly wider than system fallback, causing
  text to overflow even at text-2xl without word-break support
- Replace overflow-hidden with w-full on container to properly constrain

Co-Authored-By: John <[email protected]>
In flex layouts, children default to min-width: auto which prevents
shrinking below content intrinsic width. Adding min-w-0 at each level
of the flex hierarchy allows overflow-wrap: break-word to actually
break the long 'Meetings—No' em-dash word segment.

Co-Authored-By: John <[email protected]>
Root cause: the section element is a flex child of a flex-col
items-center container. Without w-full, it shrink-wraps to content
width (423px for Lora serif font), exceeding the 360px viewport.
Adding w-full forces it to respect parent width constraints.

Co-Authored-By: John <[email protected]>
@ComputelessComputer ComputelessComputer merged commit c73f949 into main Mar 3, 2026
10 of 11 checks passed
@ComputelessComputer ComputelessComputer deleted the devin/1772447454-fix-mobile-overflow branch March 3, 2026 08:32
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