Pages with code samples don't shrink properly in Firefox thus making the pages unreadable on mobile
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Android またはデスクトップの Firefox でサンプルページを再現し、次に body overflow-x と .gatsby-highlight のコードサンプルのスタイルを調べます。ドキュメントページがモバイルでも読みやすいままで、コードサンプルが折り返されるか、独自の横スクロールを提供できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- css, react
- 領域
- documentation, frontend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100