Files
ElyOffice/tasks/reviews/C14.12-r1.md
T

8 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FAIL
1. `reference/Ely-GPUI-Components/src/documents/document/visual.rs:59`:可视模式打开的编辑块没有应用字号。设置 200% 后,渲染出的正文变大,但点击正文进入编辑时仍按原字号显示;空文档的输入块也如此。探针 `probe_visual_edit_scale` 实测输入行高从 26px 到 26px,未随 `scale=2.0` 改变。应把书写视图的字号应用到普通块与末尾块的输入容器,并补上打开块前后调整字号的回归测试。证据:`.work/C14.12-r1/component-look.log`。
2. `reference/Ely-GPUI-Components/src/documents/document/look.rs:72`、`reference/Ely-GPUI-Components/src/editor/view.rs:268`:打字机居中的缓存没有考虑可视区尺寸。长文中已居中的块或源码行保持不动,把窗口高度从 1080px 缩到 400px,目标便离中心 340px;继续绘制也不会纠正,因为块编号、文字版本、块高或源码行号均未变化。应在可视区尺寸改变后按新的布局重新居中,并覆盖两种模式的窗口缩放。探针 `probe_visual_resize`、`probe_source_resize` 均从偏差 0px 变成 340px。证据:`.work/C14.12-r1/component-look.log`。
3. `reference/Ely-GPUI-Components/src/documents/document/visual.rs:167`、`reference/Ely-GPUI-Components/src/editor/view.rs:286`:打字机模式没有在文档两端提供居中所需的滚动空间,滚动被内容边界夹住。新文档开头及长文末尾只能停在视口顶部或底部,无法满足当前块/插入点所在行居中的行为。探针 `probe_visual_edges` 的首末块偏差为 507px、475px,`probe_source_edges` 的首末行偏差为 530.5px、511.5px。应仅在显示层为打字机模式提供两端的滚动余量,并核对短文、首行/首块和末行/末块均能居中,不改 Markdown。证据:`.work/C14.12-r1/component-look.log`。