Commit Graph
6 Commits
Author SHA1 Message Date
hunter-dev a18982659b fix(outline): Typora 式瞬时跳转——smooth scroll 在导航场景是反模式(慢+与 ProseMirror scrollIntoView 冲突). 参考 Typora 设计: 1.瞬时设置 scrollEl.scrollTop=targetTop, 不用 behavior:smooth; 2.setTextSelection 设光标(不触发滚动) + view.focus() 直接聚焦(跳过 editor.commands.focus 的 scrollIntoView); 3.闪烁高亮放最后. 一击即达, 无需二次点击, 无冲突卡顿 2026-08-26 21:51:25 +08:00
hunter-dev ed6eddc355 fix(outline): 点击跳转滚动修复——1.点一下到最下面: setTextSelection+focus 在 scrollTo 之后执行, ProseMirror 的 scrollIntoView 覆盖手动 smooth scroll; 修复: 先 setTextSelection(不触发滚动) 再 scrollTo(smooth), focus 延迟到 rAF 下一帧执行, 避免覆盖; 2.暗色遗留: outline-flash-anim 和 outline-item-active 用硬编码 #63b3ed/rgba(99,179,237), 暗色主题下异常; 修复: 改用 var(--accent)/var(--control-border) 主题变量, animation fill-mode:forwards 确保结束完全透明; 3.流畅度: 两条 smooth scroll 冲突导致卡顿, 修复后仅一条 scroll 2026-08-26 21:44:23 +08:00
hunter-dev 0c605cb8b6 fix(editor+outline): 2个问题修复——1.tiptap error: resetEditor清空currentPath后TiptapEditor提前return不渲染EditorContent, 但useEffect仍调editor.commands.setContent触发view.dom访问崩溃; 修复: currentPath为null时跳过setContent并注销useEditorShared引用; 2a.大纲不随文档切换更新: collect effect仅依赖editor, setContent用emitUpdate:false不触发update事件; 修复: 加currentPath依赖+rAF延迟收集; 2b.大纲点击跳转位置不准: scrollIntoView的block:start受父容器影响; 修复: 手动计算scrollTop=elRect.top-containerRect.top+scrollEl.scrollTop, scrollTo精确到容器最上方 2026-08-26 21:35:11 +08:00
hunter-dev 9a89a73518 feat(M5): FR-A3/A4 主题CSS变量全接线——25 文件 168 处硬编码色替换为 var(--accent/--glow/--accent-text/--text-primary/--text-secondary/--text-tertiary/--control-border/--bg-secondary); 语义色(错误红/确认/警告/成功)保留; hljs 语法色保留; typecheck+E2E 21/21 绿 2026-08-26 14:07:48 +08:00
hunter-dev bd60a8d920 feat(M3): FR-O2/O3/O4 大纲面板——平滑滚动+闪烁高亮(FR-O2); 编辑器滚动联动高亮当前标题+大纲跟随(FR-O3); 未打开文档占位(FR-O4); editor-shared-store 跨树共享编辑器实例; outline E2E 3 项 2026-08-26 13:55:54 +08:00
hunter-dev 3ebd33536b M0-M11 狩夜人笔记初始实现:11里程碑+86测试 2026-08-24 20:35:22 +08:00