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