Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b04600b0e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Merged
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.
问题
「主页字体大小」只改变部分首页文字,按钮、图标、间距和其他页面仍保持原来的尺寸
旧版保存的非整档倍率会让设置表单校验失败,主窗口缩放后学习页的内嵌网页也会偏离预留区域
改动
将设置改为「界面尺寸」,提供 0.85、1、1.15、1.3 四档,沿用
homeFontScale保存偏好主窗口用 WebView2 整页缩放,命令仅接受
main窗口并将倍率限制在 0.85–1.3。移除首页旧字号倍率的写入,避免重复放大主窗口以隐藏状态启动,前端读取偏好时先调用缩放,再走
ready显示窗口。阅读层继续用自己的 WebView2ZoomFactor和 DPI 换算指针坐标评审修复:
publicPreferences读取旧倍率时归到最近一档,保存桥复用同一规则,前端从偏好读取可直接用于数字框的倍率评审修复:主窗口记录已设倍率,学习页内嵌网页的位置和尺寸使用 DPI × 主窗口倍率换算,内嵌内容同步缩放
验证
origin/main(8a2cdd10)运行新增前端断言,两条均按预期失败:没有发出缩放调用,首页旧字号倍率仍为 1.3node --test validation/appearance.test.cjs validation/ui-zoom.test.cjs validation/no-ghost-windows.test.cjs validation/window-chrome.test.cjs,13 项通过。覆盖偏好保存与夹紧、倍率变化时只调用一次、首页无重复放大cargo check --locked --manifest-path desktop/Cargo.toml与加--tests的编译检查均通过。Rust 部分仅做编译检查,真机缩放和首屏是否闪动待店主确认评审修复验证(
8a1b6e26)df3ab022上,validation/ui-zoom.test.cjs的保存断言失败(1.1 仍保存成 1.1),无头 Edge 中 1.1 和 0.9 都触发了数字框的stepMismatchdesktop/src/main.rs的kanji_embed_bounds_include_main_window_zoom在 1.3 倍时失败,仍返回 600×300,预期为 780×390node --test validation/appearance.test.cjs validation/ui-zoom.test.cjs validation/no-ghost-windows.test.cjs validation/window-chrome.test.cjs通过 14 项,cargo test --locked --manifest-path desktop/Cargo.toml --bin megulit zoom通过 2 项,cargo check --locked --manifest-path desktop/Cargo.toml通过