javascript-tutorial / javascript-tutorial/en.javascript.info

Horizontal sidebar on mobile page version

未关闭
#3,333 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
25.5k
派生
4k
PR 合并指标
30 天内没有已合并 PR

描述

Hey! I'd like to point out that the _"Get coordinates using button.getBoundingClientRect() for this button"_ button is making this page have a horizontal sidebar on mobile devices.

This isn't ideal since this is the only element that overflows the maximum width of mobile devices display.

What I'd suggest is resizing this button for mobile users, such that the button would fit the page. This can be achieved through CSS, setting up a maximum width of the button on mobile screens, the text will overflow to the next line.

Cya

贡献指南

这个仓库没有索引到贡献指南

调研方向

定位包含“Get coordinates using button.getBoundingClientRect() for this button”按钮的页面,并检查其在移动端宽度下的 CSS。在窄 viewport 中检查该页面;当按钮适合屏幕、其文本可以换行且不再存在水平溢出时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
css
领域
frontend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。