Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/5017

Vanessa8dbc19c1fe51
diff --git a/app/src/assets/scss/_protyle.scss b/app/src/assets/scss/_protyle.scss
index c3a8829752..c31fe9b24e 100644
--- a/app/src/assets/scss/_protyle.scss
+++ b/app/src/assets/scss/_protyle.scss
@@ -118,6 +118,7 @@
margin-right: 8px;
overflow: auto;
flex: 1;
+ min-height: 30px;
&::-webkit-scrollbar {
display: none;
diff --git a/app/src/layout/dock/Bookmark.ts b/app/src/layout/dock/Bookmark.ts
index c2f4343fb4..f23191249e 100644
--- a/app/src/layout/dock/Bookmark.ts
+++ b/app/src/layout/dock/Bookmark.ts
@@ -77,10 +77,13 @@ export class Bookmark extends Model {
element: this.element.lastElementChild as HTMLElement,
data: null,
click(element: HTMLElement) {
- openFileById({
- id: element.getAttribute("data-node-id"),
- hasContext: true,
- action: [Constants.CB_GET_FOCUS]
+ const id = element.getAttribute("data-node-id")
+ fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {
+ openFileById({
+ id,
+ hasContext: !foldResponse.data,
+ action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS],
+ });
});
},
rightClick: (element: HTMLElement, event: MouseEvent) => {