An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art:
Vanessa42896d5c3bec
diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex 743a32ae78..3e46e3c360 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -877,13 +877,14 @@ export const adjustLayout = (layout: Layout = window.siyuan.layout.centerLayout.});let lastItem: HTMLElement;let index = Math.floor(window.innerWidth / 24);- while (layout.element.scrollWidth > layout.element.clientWidth && index > 0) {+ // +2 由于某些分辨率下 scrollWidth 会大于 clientWidth+ while (layout.element.scrollWidth > layout.element.clientWidth + 2 && index > 0) {layout.children.find((item: Layout | Wnd) => {if (item.element.style.width && item.element.style.width !== "0px") {item.element.style.maxWidth = Math.max(Math.min(item.element.clientWidth, window.innerWidth) - 8, 64) + "px";lastItem = item.element;}- if (layout.element.scrollWidth <= layout.element.clientWidth) {+ if (layout.element.scrollWidth <= layout.element.clientWidth + 2) {return true;}});