Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Hide stale table resize handles after editing https://github.com/siyuan-note/siyuan/issues/19789

Danielbd11d6824e88
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 38978427a6..5e8682cda1 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -4360,6 +4360,10 @@ export class WYSIWYG {
if (!blockElement) {
return;
}
+ // 输入可能改变列宽,隐藏已有调整线,待鼠标重新命中列边界后定位。
+ if (blockElement.classList.contains("table")) {
+ blockElement.querySelector(".table__resize")?.removeAttribute("style");
+ }
if ([":", "(", "【", "(", "[", "{", "「", "『", "#", "/", "、"].includes(event.data)) {
protyle.hint.enableExtend = true;
}