Repository navigation
fix(ui): 修复主面板按钮悬停时的布局跳动 - #40
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.
主面板的刷新、说明、图表样式、求重置和详情入口在鼠标悬停时可能短暂向下跳动。本次调整滚动内容的测量方式,并取消作用于整个按钮内容的悬停动画,保留颜色、背景高亮和手形指针反馈。
改动
PolishedScrollView在限定宽度下直接读取fittingSize,不再把正在显示的NSHostingView临时扩高到 8000;无需重测时提前返回,并在写入最终尺寸后完成布局。1120 → 8000 → 1120,修复后通过。验证
swift run CodexRunway --self-check通过。swift test:782 项通过,1 项既有失败。ControlPanelTabBarTests.windowAndTabsGrowForLocalizedTitles在本机测得日文标签对应窗口宽度为 552,断言预期为 546;用未修改的基线计算代码复核,结果相同。