Repository navigation
fix(shell): 撤销页签等比填满,恢复固定上限+短名实际+长名省略号 - #1971
Merged
Merged
Conversation
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.
变更概述
撤销 #1970。维护者确认目标行为是 #1103 的固定宽度模型(页签标题在固定最大宽度内显示、短名按实际长度、长名以
…结尾、不撑满整条页签栏),而非 #1970 误实现的flex-1等比填满。#1970 正是把 #1103/#1231 的「不伸展 + 固定上限」错误回退成「弹性填满」,本 PR 撤回。关联 Issue
Closes #1843
变更内容
src/components/TabBar.tsx:恢复flex: 0 1 auto(不伸展)+max-width: var(--tab-max-width)(固定上限,长名不撑宽、不挤掉后面页签)+min-width: calc-size(max-content, min(96px, size))(短名按实际、长名保底),标题保持 ellipsis。openspec/specs/{navigation,application-shell}、docs/design/system/spec.md §7.5、decisions.md:恢复 [change=surface-refine-1120/2.2] 页签最大宽度 #1231/[spec] 页签标题固定宽度 + 信息窗复制与 R8 + 双击空白全屏稳定性 #1103 的固定上限模型描述(撤销 fix(shell): 恢复页签等比伸缩(flex-1 + 96 保底,移除 calc-size) #1970 的等比填满条款)。e2e/tab-selection.spec.ts:恢复 [change=surface-refine-1120/2.2] 页签最大宽度 #1231 的固定上限/短名实际/长名省略号/窄视口收缩断言。.artifacts/1843/state-coverage.json:4 态证据(长名省略号、短名实际、未铺满留白、窄视口收缩)。行为验证(对 4 条维护者要求)
--tab-max-width(256px),不随文件名无限撑宽 → 不挤掉后面页签。…收尾:标题text-overflow: ellipsis、nowrap、实际被裁剪。scrollWidth ≤ clientWidth且留空白拖窗区。验证方式
tab-selection.spec.ts+tab-strip-dblclick.spec.ts12 passed。.artifacts/1843/state-coverage.json(4 态 passed)。质量门禁引用
风险评估
风险等级: low(撤销一次误合并,恢复用户既确认的 #1231/#1103 模型)
来源: ai-generated
回滚方案
git revert 即可回滚