An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Fix pinned table border overflow https://github.com/siyuan-note/siyuan/issues/18537
Daniel61f009f0c563
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scssindex 40911dbf1f..a9d53563d6 100644--- a/app/src/assets/scss/protyle/_wysiwyg.scss+++ b/app/src/assets/scss/protyle/_wysiwyg.scss@@ -560,6 +560,11 @@max-height: 50vh;overflow: auto;box-shadow: inset 0 -1px 0 var(--b3-theme-surface-lighter);++ &::-webkit-scrollbar-track:vertical,+ &::-webkit-scrollbar-corner {+ background-color: var(--b3-parent-background);+ }}thead {diff --git a/app/src/boot/globalEvent/mousemove.ts b/app/src/boot/globalEvent/mousemove.tsindex 7afb881e78..9bf19e9bec 100644--- a/app/src/boot/globalEvent/mousemove.ts+++ b/app/src/boot/globalEvent/mousemove.ts@@ -260,9 +260,10 @@ export const windowMouseMove = (event: MouseEvent) => {}if (tableElement.getAttribute("contenteditable") === "true") {- const tableHeight = blockElement.querySelector("colgroup").clientHeight;const captionElement = blockElement.querySelector("caption");const captionHeight = (captionElement && captionElement.style.captionSide !== "bottom") ? captionElement.clientHeight : 0;+ const tableHeight = Math.min(blockElement.querySelector("colgroup").clientHeight,+ tableElement.clientHeight - captionHeight);const rect = cellElement.getBoundingClientRect();if (rect.right - event.clientX < 3 && rect.right - event.clientX > 0) {resizeElement.setAttribute("data-col-index", (getColIndex(cellElement) + cellElement.colSpan - 1).toString());