reactjs / reactjs/react.dev

Pages with code samples don't shrink properly in Firefox thus making the pages unreadable on mobile

オープン
#1,089 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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:
image

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Android またはデスクトップの Firefox でサンプルページを再現し、次に body overflow-x と .gatsby-highlight のコードサンプルのスタイルを調べます。ドキュメントページがモバイルでも読みやすいままで、コードサンプルが折り返されるか、独自の横スクロールを提供できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
css, react
領域
documentation, frontend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
50/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。