Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve pinned database view toolbar behavior https://github.com/siyuan-note/siyuan/issues/18547

Daniela3b316496a1a
diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss
index 41bf2ffd06..a46e9e3113 100644
--- a/app/src/assets/scss/business/_av.scss
+++ b/app/src/assets/scss/business/_av.scss
@@ -140,7 +140,7 @@
background-color: var(--b3-parent-background);
box-sizing: border-box;
position: fixed;
- z-index: 4;
+ z-index: 3;
}
&--show .block__icon {
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index e060227e82..45b48cf372 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2645,7 +2645,7 @@ export class WYSIWYG {
}
private bindEvent(protyle: IProtyle) {
- // 删除块时,av 头尾需重新计算位置
+ // 编辑器尺寸或内容变化时,重新计算数据库视图栏和表头、表尾位置
protyle.observer = new ResizeObserver(() => {
protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => {
if (item.querySelector(".av__scroll")) {
@@ -2657,8 +2657,8 @@ export class WYSIWYG {
avRender(item, protyle);
return;
}
- stickyRow(item, protyle.contentElement, "all");
}
+ stickyRow(item, protyle.contentElement, "all");
});
});