react: view tabs' fit check at 320 px with a mouse, and after a late font

未关闭 适合新手
#1,083 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, react
领域
frontend, testing

调研方向

阅读 tests/browser/view-tabs.spec.js 和 use-tabs-fit.js。先检查现有的 320 px 触摸操作和换行用例是如何组织的,然后查看 hook 如何测量标签页宽度以及如何处理 document.fonts。完成标准是:德语报告包含一项在 320 px 下使用鼠标检查是否适配的内容,并且 hook 会在字体加载后重新测量;或者报告标题准确描述了这一行为。

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

描述

area:react

Two small gaps left by #1081 (#943):

  • tests/browser/view-tabs.spec.js no longer tests a German report 320 px wide with a mouse; the 320 px case runs with touch only. Add it to the one-line cases if it fits now, or to the wrapping case if not.
  • use-tabs-fit.js measures the row's needed width only while the longer form shows. A web font that loads while the tabs or buttons are already short leaves that width stale until the contents change or the row grows. The header says a font that loads is compared again, which is half true. Measure again when document.fonts is ready, or say what the hook does.
主要语言
JavaScript
星标
1
派生
1
平均合并
3 小时 52 分钟
30 天内合并 PR
466

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eizedev/pivotkit 的其他 Issue

查看 eizedev/pivotkit 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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