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: attr in database
Vanessaa2e4e2288e02
diff --git a/app/src/protyle/util/resize.ts b/app/src/protyle/util/resize.tsindex 67b0e91d51..aa4a06970b 100644--- a/app/src/protyle/util/resize.ts+++ b/app/src/protyle/util/resize.ts@@ -54,6 +54,7 @@ export const resizeAV = (item: HTMLElement) => {if (!item.classList.contains("av") || item.getAttribute("data-render") !== "true") {return;}+ const attrElement = item.querySelector(".protyle-attr") as HTMLElementif (item.style.width.endsWith("%") || item.style.margin) {const avHeaderElement = item.firstElementChild.firstElementChild as HTMLElement;avHeaderElement.style.paddingLeft = "";@@ -61,6 +62,7 @@ export const resizeAV = (item: HTMLElement) => {const avBodyElement = item.querySelector(".av__scroll").firstElementChild as HTMLElement;avBodyElement.style.paddingLeft = "";avBodyElement.style.paddingRight = "";+ attrElement.style.paddingRight = "";item.style.alignSelf = "";if (!item.style.width.endsWith("%")) {item.style.width = "";@@ -75,6 +77,7 @@ export const resizeAV = (item: HTMLElement) => {const avBodyElement = item.querySelector(".av__scroll").firstElementChild as HTMLElement;avBodyElement.style.paddingLeft = paddingLeft;avBodyElement.style.paddingRight = paddingRight;+ attrElement.style.paddingRight = paddingRight;item.style.alignSelf = "center";if (item.parentElement.clientWidth > 0) {item.style.width = item.parentElement.clientWidth + "px";