Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/8554 9

Vanessaa9bdee63efe4
diff --git a/app/src/assets/scss/business/_layout.scss b/app/src/assets/scss/business/_layout.scss
index d9e325c5ed..3c69055209 100644
--- a/app/src/assets/scss/business/_layout.scss
+++ b/app/src/assets/scss/business/_layout.scss
@@ -116,7 +116,9 @@
height: 6px;
width: 100%;
position: relative;
- z-index: 4; // 需大于 #sidebarContainer https://github.com/siyuan-note/siyuan/issues/11759
+ // 需高于 #sidebarContainer 和 .protyle-breadcrumb,并低于 .protyle-toolbar
+ // https://github.com/siyuan-note/siyuan/issues/11759
+ z-index: 6;
flex-shrink: 0;
touch-action: none;
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss
index 8e86d7323e..a9f0267ebb 100644
--- a/app/src/assets/scss/protyle/_protyle.scss
+++ b/app/src/assets/scss/protyle/_protyle.scss
@@ -198,7 +198,8 @@
position: absolute;
inset: 0;
overflow: hidden;
- z-index: 3; // 需大于 database header and footer
+ // 需高于数据库表头和表尾
+ z-index: 4;
pointer-events: none; // 划选矩形不拦截鼠标事件,避免 elementFromPoint 命中自身
}
@@ -214,7 +215,8 @@
flex-shrink: 0;
box-sizing: border-box;
min-height: 42px;
- z-index: 4; // 需大于 protyle-select
+ // 需高于选区容器,并低于 .protyle-toolbar
+ z-index: 5;
font-size: 14px;
border-radius: var(--b3-border-radius-b) var(--b3-border-radius-b) 0 0;
diff --git a/app/src/assets/scss/protyle/_toolbar.scss b/app/src/assets/scss/protyle/_toolbar.scss
index bebb830b60..b3a1a1beb1 100644
--- a/app/src/assets/scss/protyle/_toolbar.scss
+++ b/app/src/assets/scss/protyle/_toolbar.scss
@@ -1,7 +1,8 @@
.protyle {
&-toolbar {
background-color: var(--b3-theme-background);
- z-index: 5; // higher than .layout__resize--lr
+ // 需高于 .layout__resize
+ z-index: 7;
position: fixed;
box-shadow: var(--b3-dialog-shadow);
border-radius: var(--b3-border-radius);