Code blocks not rendered properly in smaller screens
还没有人认领这个 Issue。
- 主要语言
- CSS
- 星标
- 373
- 派生
- 325
- 平均合并
- 4 天 18 小时
- 30 天内合并 PR
- 1
描述
I noticed an issue in which the code block in the "git log --oneline improvements" section renders badly in smaller screen. Further it also breaks the single-pagedness of the website. As a consequence, one might have to zoom in to read the post and scrolling might take you to empty space in the right. Screen shots:
-
Desktop view:

-
Mobile view (iPhone SE resolution)


Note the scroll bar in the bottom of the page.
It would be nice to fix this by making the code blocks render in such a way that the code within the block is scrollable rather than the whole page being scrollable.
Note: Initially mentioned in https://github.com/git/git.github.io/pull/366#issuecomment-471316738
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 Git Developer Pages 网站上的“git log --oneline improvements”部分开始,按照截图中显示的 iPhone SE 分辨率复现布局。检查影响代码块的响应式样式;完成标准是代码本身可以水平滚动,而不会造成整个页面溢出或产生空白区域。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- css
- 领域
- frontend, web-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100