fix: stabilize local folder AI document workflow
- scope local-folder PageTree revision and document sidebar rendering to fileTreeScope - preserve projected table/image attrs for local Markdown aggregate fallback - avoid FileTree restore forced layouts on cold design open - add API ChatOnly provider runtime and local OCR task handling regressions
This commit is contained in:
@@ -13,8 +13,9 @@ function visibleFileTreeRows(deps) {
|
||||
return Array.from(document.querySelectorAll('#sidebar-file-tree-root .tree-row[data-shell-mode="filetree"]'))
|
||||
.filter(function(row) {
|
||||
if (!(row instanceof HTMLElement)) return false;
|
||||
if (row.closest('.tree-children--collapsed')) return false;
|
||||
return row.offsetParent !== null || row.getClientRects().length > 0;
|
||||
// 文件树展开恢复会在短时间内多次同步选择状态。这里不能读取
|
||||
// offsetParent/getClientRects,否则会和 DOM 写入交错触发强制布局。
|
||||
return !row.closest('.tree-children--collapsed');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user