fix(renderer): 修正窗口缩放时 Agent 与权限菜单偏移 - #70
Merged
BytePioneer-AI merged 2 commits intoAug 31, 2026
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
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.
问题
Codex Desktop 使用
--codex-window-zoom对应用根节点进行缩放时,Agent 选择菜单和非 Codex Agent 的权限模式菜单仍直接使用getBoundingClientRect()返回的物理坐标计算位置。菜单位于同一个缩放上下文中,这些坐标会再次被缩放,导致菜单相对触发按钮产生明显偏移。修复
--codex-window-zoom1border-box,避免依赖宿主页面的全局样式重置1.6的 Playwright 回归测试验证
npm run buildnpm run typechecknpm run lintnpm run test:rust(107 tests passed)修复后,Agent 菜单与权限模式菜单在 Codex Desktop 非 100% 缩放下仍与各自触发按钮正确对齐,菜单宽度和垂直间距也按窗口缩放比例显示。
Closes #69