Repository navigation
fix(video): 缩略图锚定可见进度轨道,间距约减半(#1953 复测) - #1966
Merged
Merged
Conversation
This was referenced Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题(#1953 复测残留)
用户复测:缩略图与进度条时间去重已好(#1962/#1964 有效);缩略图与进度条的间距有点高,调低点。
根因(像素级取证)
bottom = cr.bottom - rect.top + 8,rect量的是.art-progress外壳:上内边距 10px + 6px 控件行 + 5px 下内边距,3px 可见轨道(.art-control-progress-inner)居中其中 → 外壳顶比轨道顶高 ~11.5px。修法
锚点从外壳顶改到可见轨道顶(
.art-control-progress-inner)+ 9px(清 16px 指示圆点上探 6.5px 后留 2.5px 余量)→ 间距约减半且不遮挡圆点。外壳无水平内边距,left/ratio沿用同一 rect,行为不变。测试
e2e/video-controls.spec.ts新增「缩略图底边贴近可见进度轨道」:断言轨道顶 − 弹层底边 ∈ (0, 12],旧实现 ~19.5 必失败。npx tsc --noEmit✓、npx vitest run2499 ✓、npx playwright test e2e/video-fit.spec.ts e2e/video-controls.spec.ts e2e/video-compact.spec.ts24 ✓风险
低——只改悬停弹层定位基准,无平台特有差异点。
fixes #1953