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: Scroll past document covers when opening floating windows https://github.com/siyuan-note/siyuan/issues/13083
Daniel6a3216d4c141
diff --git a/app/src/assets/scss/business/_block.scss b/app/src/assets/scss/business/_block.scssindex 914c0c7a2f..ac6726bb41 100644--- a/app/src/assets/scss/business/_block.scss+++ b/app/src/assets/scss/business/_block.scss@@ -33,10 +33,6 @@&__img {margin-bottom: 0;- img {- height: clamp(96px, 18vh, 180px);- }-&:not(.fn__none) + .protyle-background__ia {display: none;}diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.tsindex 8a464f2daa..db8c29dc59 100644--- a/app/src/block/Panel.ts+++ b/app/src/block/Panel.ts@@ -305,6 +305,7 @@ export class BlockPanel {action.push(Constants.CB_GET_BACKLINK);}const isDocument = response.data.rootID === this.refDefs[index].refID;+ let isInitialRender = true;const editor = new Protyle(this.app, editorElement, {databaseAttr: true,blockId: this.refDefs[index].refID,@@ -337,6 +338,15 @@ export class BlockPanel {if (afterCB) {afterCB();}+ if (isInitialRender) {+ isInitialRender = false;+ if (isDocument) {+ const backgroundImageElement = editor.protyle.background.element.querySelector<HTMLElement>(".protyle-background__img");+ const scrollTop = backgroundImageElement?.clientHeight || 0;+ editor.protyle.contentElement.scrollTop = scrollTop;+ editor.protyle.scroll.lastScrollTop = scrollTop;+ }+ }// https://ld246.com/article/1653639418266if (this.refDefs.length > 1 && editor.protyle.element.dataset.resized !== "true") {this.setAutoEditorHeight(editor);diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.tsindex 8b8a4efc28..e97def33cb 100644--- a/app/src/protyle/header/Background.ts+++ b/app/src/protyle/header/Background.ts@@ -788,11 +788,6 @@ export class Background {// 移动端键盘弹起和点击加号需保持滚动高度一致this.imgElement.style.height = "200px";/// #endif- if (this.element.closest(".block__popover")) {- this.imgElement.style.removeProperty("height");- this.imgElement.style.removeProperty("min-height");- this.imgElement.style.removeProperty("max-height");- }} else {this.imgElement.parentElement.classList.add("fn__none");this.actionElements[2].classList.remove("fn__none");