Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/7797

Vanessac0f738fcef43
diff --git a/app/src/assets/scss/mobile.scss b/app/src/assets/scss/mobile.scss
index c683a41510..90b32477a5 100644
--- a/app/src/assets/scss/mobile.scss
+++ b/app/src/assets/scss/mobile.scss
@@ -36,7 +36,7 @@
}
.b3-list-item {
- font-size: 18px;
+ font-size: 16px;
line-height: 40px;
&__icon {
diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.ts
index 16044ff07a..0bc6342e06 100644
--- a/app/src/card/viewCards.ts
+++ b/app/src/card/viewCards.ts
@@ -168,6 +168,9 @@ const renderViewItem = (blocks: IBlock[], title: string, deckType: string) => {
hPath = getNotebookName(item.box) + getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false);
} else {
hPath = getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false).replace("/" + pathArray.join("/"), "");
+ if (hPath.startsWith("/")) {
+ hPath = hPath.substring(1);
+ }
}
listHTML += `<div data-type="card-item" class="b3-list-item${isFirst ? " b3-list-item--focus" : ""}${isMobile() ? "" : " b3-list-item--hide-action"}" data-id="${item.id}">
<svg class="b3-list-item__graphic"><use xlink:href="#${getIconByType(item.type)}"></use></svg>
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts
index 722f0df41f..1279a3913b 100644
--- a/app/src/menus/navigation.ts
+++ b/app/src/menus/navigation.ts
@@ -346,7 +346,11 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
iconHTML: Constants.ZWSP,
label: window.siyuan.languages.mgmt,
click: () => {
- viewCards(id, pathPosix().join(getNotebookName(notebookId), name), "Tree");
+ fetchPost("/api/filetree/getHPathByID", {
+ id
+ }, (response) => {
+ viewCards(id, pathPosix().join(getNotebookName(notebookId), response.data), "Tree");
+ });
/// #if MOBILE
closePanel();
/// #endif