Pages with code samples don't shrink properly in Firefox thus making the pages unreadable on mobile
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 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 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先在 Android 或桌面版 Firefox 中重現範例頁面,然後檢查 body overflow-x 和 .gatsby-highlight 程式碼範例的樣式。完成的標準是文件頁面在行動裝置上仍保持可讀,且程式碼範例要麼換行,要麼提供自己的水平捲動。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- css, react
- 領域
- documentation, frontend
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 50/100