Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for long homepage title words causing horizontal scrolling on mobile #322

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AramZS
Copy link

@AramZS AramZS commented May 18, 2024

Hey! My layout for the home page is slightly different than yours, so definitely test on your side, but I noticed that particularly long unbroken strings can cause the homepage to gain a horizontal scroll leading to a difficult reading experience. This is a problem I have because Pocket occasionally drops unbroken URLs into my Amplify block, but may not happen on your site, but could one day. This fixed it on my site, I think it should fix it on yours as well if it happens there.

I also added an .editorconfig file. I don't think you use it, but by having it in your repo, future contributors who leverage EditorConfig can make changes without accidentally changing a ton of spacing in the files they touch. Even so, this comes with a bunch of spacing changes, sorry!

The main change is at the top of .content-grid and main > section.

The double rule of

  text-wrap: balance;
  text-wrap: pretty;

is there because pretty looks better, but is not as broadly adopted across browsers as balance is.

With long unbroken strings in a title on the home page the
mobile page has horizontal scroll where it shouldn't and
has a bad user experiance. This should fix it so it doesn't
continue to force horizontal scroll.

This prefers text-wrap: pretty, but falls back to the more
broadly adopted text-wrap: balance.
Copy link

netlify bot commented May 18, 2024

👷 Deploy request for photogabble pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 236e95f

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.

None yet

1 participant