Pages with code samples don't shrink properly in Firefox thus making the pages unreadable on mobile
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 11.8k
- Forks
- 7.9k
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 11
Beschreibung
I use Firefox on Android as my main browser and every time I follow a link from Twitter to the React docs, I inevitably can't read them without then copying the link in to Chrome because body has overflow-x: hidden and the .gatsby-highlight code samples don't wrap like they do in other browsers.
An example, broken page is https://reactjs.org/docs/add-react-to-a-website.html
This issue can also be reproduced in desktop Firefox:

Personally, I don't think that code samples should wrap and they should have their own horizontal scroll, but I'll leave it up to you which you think is the best course of action. Regardless, I'd be happy to try and fix it, whichever solution you decide on.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Beispielseite in Firefox auf Android oder dem Desktop nachzubilden, und untersuche dann die Styles für body overflow-x und die Codebeispiele in .gatsby-highlight. Als erledigt gilt die Aufgabe, wenn die Dokumentationsseite auf Mobilgeräten lesbar bleibt und Codebeispiele entweder umbrechen oder eigenes horizontales Scrollen ermöglichen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- css, react
- Bereich
- documentation, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 50/100