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: https://github.com/siyuan-note/siyuan/issues/13052
Vanessab0691a41e827
diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.cssindex 49335ba5cb..4904eca6a0 100644--- a/app/appearance/themes/daylight/theme.css+++ b/app/appearance/themes/daylight/theme.css@@ -207,11 +207,14 @@/* 表格 */--b3-table-even-background: rgba(0, 0, 0, .02);- /* 潜入块 */- --b3-embed-background: var(--b3-table-even-background);+ /* 嵌入块 */+ --b3-embed-background: transparent;/* 引述块 */- --b3-bq-background: var(--b3-table-even-background);+ --b3-bq-background: transparent;++ /* 父块颜色 */+ --b3-parent-background: var(--b3-theme-background);}:lang(ja_JP):root {diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.cssindex 5a07697c01..399335a0dd 100644--- a/app/appearance/themes/midnight/theme.css+++ b/app/appearance/themes/midnight/theme.css@@ -206,11 +206,14 @@/* 表格 */--b3-table-even-background: rgba(255, 255, 255, .03);- /* 潜入块 */- --b3-embed-background: var(--b3-table-even-background);+ /* 嵌入块 */+ --b3-embed-background: transparent;/* 引述块 */- --b3-bq-background: var(--b3-table-even-background);+ --b3-bq-background: transparent;++ /* 父块颜色 */+ --b3-parent-background: var(--b3-theme-background);}:lang(ja_JP):root {diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scssindex 2185294cf1..96a1463969 100644--- a/app/src/assets/scss/business/_av.scss+++ b/app/src/assets/scss/business/_av.scss@@ -99,7 +99,7 @@bottom: 0;height: 26px;padding: 0 5px;- background-color: var(--av-background);+ background-color: var(--b3-parent-background);font-size: 87.5%;}@@ -162,7 +162,7 @@&--header,&--footer {- background-color: var(--av-background);+ background-color: var(--b3-parent-background);}&--footer {@@ -178,7 +178,7 @@}.av__colsticky {- background-color: var(--av-background); // 保证盯住时无计算结果的列不被覆盖+ background-color: var(--b3-parent-background); // 保证盯住时无计算结果的列不被覆盖}.av__calc {@@ -437,7 +437,7 @@&.av__firstcol,& > div:not(.av__cell--select):not(.av__cell--active):not(.av__calc--ashow) {- background-color: var(--av-background);+ background-color: var(--b3-parent-background);}}diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scssindex bc05f1ba37..0bab0877f0 100644--- a/app/src/assets/scss/protyle/_protyle.scss+++ b/app/src/assets/scss/protyle/_protyle.scss@@ -441,5 +441,6 @@ table[contenteditable="true"] + .protyle-action__table {background: var(--b3-theme-primary-lightest);position: relative;transition: var(--b3-transition);+ z-index: 3;}}diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scssindex 855740ca23..1b28be00f7 100644--- a/app/src/assets/scss/protyle/_wysiwyg.scss+++ b/app/src/assets/scss/protyle/_wysiwyg.scss@@ -322,7 +322,7 @@top: 1px;z-index: 2;box-shadow: 0 -1px 0 var(--b3-border-color) inset, 0 -1px 0 0 var(--b3-border-color);- background-color: var(--b3-theme-background);+ background-color: var(--b3-parent-background);th {border-top: 0;diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex 872d828da7..7bc148ce39 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -207,13 +207,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}viewData = item;}});- let avBackground = "--av-background:var(--b3-theme-background)";- if (e.style.backgroundColor) {- avBackground = "--av-background:" + e.style.backgroundColor;- } else if (isInEmbedBlock(e)) {- avBackground = "--av-background:var(--b3-theme-surface)";- }- e.firstElementChild.outerHTML = `<div class="av__container" style="${avBackground}">+ e.firstElementChild.outerHTML = `<div class="av__container"><div class="av__header"><div class="fn__flex av__views${isSearching || query ? " av__views--show" : ""}"><div class="layout-tab-bar fn__flex">diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.tsindex 050aef50a3..d4471239bf 100644--- a/app/src/protyle/toolbar/Font.ts+++ b/app/src/protyle/toolbar/Font.ts@@ -223,16 +223,12 @@ export const fontEvent = (protyle: IProtyle, nodeElements: Element[], type?: stre.style.textShadow = "";e.style.backgroundColor = "";e.style.fontSize = "";- if (e.classList.contains("av")) {- e.querySelector(".av__container").setAttribute("style", "--av-background:var(--b3-theme-background)");- }+ e.style.removeProperty("--b3-parent-background")} else if (type === "style1") {const colorList = color.split(Constants.ZWSP);e.style.backgroundColor = colorList[0];e.style.color = colorList[1];- if (e.classList.contains("av")) {- e.querySelector(".av__container").setAttribute("style", `--av-background:${colorList[0]}`);- }+ e.style.setProperty('--b3-parent-background', colorList[0]);} else if (type === "style2") {e.style.webkitTextStroke = "0.2px var(--b3-theme-on-background)";e.style.webkitTextFillColor = "transparent";@@ -242,9 +238,7 @@ export const fontEvent = (protyle: IProtyle, nodeElements: Element[], type?: stre.style.color = color;} else if (type === "backgroundColor") {e.style.backgroundColor = color;- if (e.classList.contains("av")) {- e.querySelector(".av__container").setAttribute("style", `--av-background:${color}`);- }+ e.style.setProperty('--b3-parent-background', color);} else if (type === "fontSize") {e.style.fontSize = color;}