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: fix https://github.com/siyuan-note/siyuan/issues/9524
Vanessae74a7dee33fb
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.tsindex b02b469f81..b96a3cd9da 100644--- a/app/src/protyle/header/Background.ts+++ b/app/src/protyle/header/Background.ts@@ -304,10 +304,9 @@ export class Background {} else if (type === "asset") {const rect = target.getBoundingClientRect();protyle.toolbar.showAssets(protyle, {- x: rect.right,- y: rect.bottom,- w: target.parentElement.clientWidth + 8,- h: rect.height+ x: rect.right - 798,+ y: rect.bottom + 8,+ isLeft: false,}, (url) => {this.ial["title-img"] = `background-image:url("${url}")`;this.render(this.ial, protyle.block.rootID);diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 3e4bf1330b..52cdca5e4b 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -1547,7 +1547,7 @@ export class Toolbar {this.subElement.style.width = "";this.subElement.style.padding = "";this.subElement.innerHTML = `<div style="max-height:50vh" class="fn__flex">-<div class="fn__flex-column" style="${isMobile() ? "width:100%" : "min-width: 260px;max-width:50vw"}">+<div class="fn__flex-column" style="${isMobile() ? "width:100%" : "min-width: 260px;max-width:420px"}"><div class="fn__flex" style="margin: 0 8px 4px 8px"><input class="b3-text-field fn__flex-1"/><span class="fn__space"></span>@@ -1557,7 +1557,7 @@ export class Toolbar {</div><div class="b3-list fn__flex-1 b3-list--background" style="position: relative"><img style="margin: 0 auto;display: block;width: 64px;height: 64px" src="/stage/loading-pure.svg"></div></div>-<div style="width: 260px;display: ${isMobile() || window.outerWidth < window.outerWidth / 2 + 260 ? "none" : "flex"};padding: 8px;overflow: auto;justify-content: center;align-items: center;"></div>+<div style="width: 360px;display: ${isMobile() || window.outerWidth < window.outerWidth / 2 + 260 ? "none" : "flex"};padding: 8px;overflow: auto;justify-content: center;align-items: center;word-break: break-all;"></div></div>`;const listElement = this.subElement.querySelector(".b3-list");const previewElement = this.subElement.firstElementChild.lastElementChild;