Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
847 stars 342 forks source link

George Lois: Long words don't break correctly #7789

Closed RafaelFunchal closed 1 month ago

RafaelFunchal commented 2 months ago

Quick summary

A user reported on the pt-BR Forum that long words add the post titles don't break properly.

Screenshot 2024-05-06 at 15 00 46

Steps to reproduce

  1. Create posts with long words on the post titles.
  2. Activate the George Lois theme

What you expected to happen

Long words should properly break to the next line respecting the language.

What actually happened

Words randomly break in the middle of the word like:

th e

an d

Browser

Google Chrome/Chromium, Mozilla Firefox

Context

Customer report

Platform (Simple, Atomic, or both?)

No response

Other notes

No response

Reproducibility

Consistent

Severity

One

Available workarounds?

No but the platform is still usable

Workaround details

No response

mrfoxtalbot commented 2 months ago

I cannot reproduce this on my testing site (right):

Screenshot 2024-05-07 at 09 07 00

I checked their site and they do not seem to have any odd settings or custom CSS.

It looks like something to do with the word-break property but as far as I can tell, it is set to word-break:break-word on both sites.

RafaelFunchal commented 2 months ago

I don't know if adding hyphens to CSS would help here.

mrfoxtalbot commented 2 months ago

I think you're right @RafaelFunchal

... which probably explains why it wasn't taking me anywhere 😂

RafaelFunchal commented 1 month ago

@mrfoxtalbot , I just noticed the user added   instead of a regular space to all post titles. I removed it that unnecessary character.

Although the text doesn't use hyphens yet, the user's site looks better now.

mrfoxtalbot commented 1 month ago

That sounds like copy-paste from some dubious source, right?

RafaelFunchal commented 1 month ago

Yeah, I agree. Sorry for not noticing that earlier.

I think we are in a good place to close this issue because it was a False Positive.