Reactjs.org: Horizontal scrolling can break on mobile

Created on 17 Nov 2018  路  8Comments  路  Source: reactjs/reactjs.org

Spotted this on Twitter: https://twitter.com/wojtekmaj91/status/1063708337177534465

Didn鈥檛 verify myself.

Most helpful comment

the main column div is display: flex but it's not flex-direction: column even though it shoudl be a column layout.

The production className is css-j4q8zh. No idea what that is in the source code

this is only broken on Firefox for Android as far as i can tell. I'm not sure What the spec is here but Firefox tends to be most faithful to the CSS specs in my experience.

All 8 comments

Hello! Adding a width or max-width of 100% to <article class="css-174qq1k"> seems to fix the issue for Firefox (63.0.1 ) on desktop on this page: https://reactjs.org/docs/faq-versioning.html

I've not confirmed this fixes it on a device yet :)

Do you use a JavaScript media query condition for some mobile UI? It might be Gatsby's initial render which uses the prerendered UI, and those JavaScript media's don't get re-evaluated on initial render on mobile.

the main column div is display: flex but it's not flex-direction: column even though it shoudl be a column layout.

The production className is css-j4q8zh. No idea what that is in the source code

this is only broken on Firefox for Android as far as i can tell. I'm not sure What the spec is here but Firefox tends to be most faithful to the CSS specs in my experience.

The faster fix to avoiding the unbreakable long words is to add word-break: break-all; to the wrapper div.css-j4q8zh

got your tweet dan, i just checked, it fine on my android, also tried recreating the url as an intent from twitter it was fine too, i think @wojtekkmaj91 should give us more info, like the device and browser details

Thanks everyone!

I initially merged https://github.com/reactjs/reactjs.org/pull/1414 but it broke sidebar on desktop. We need a fix that works both on desktop and mobile.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tajo picture tajo  路  4Comments

gajomon picture gajomon  路  4Comments

dstudzinski picture dstudzinski  路  3Comments

ahtee picture ahtee  路  4Comments

msert29 picture msert29  路  5Comments