This commit is contained in:
Vanessa 2023-03-28 11:41:51 +08:00
parent ca405a5f89
commit c0f738fcef
3 changed files with 9 additions and 2 deletions

View file

@ -36,7 +36,7 @@
} }
.b3-list-item { .b3-list-item {
font-size: 18px; font-size: 16px;
line-height: 40px; line-height: 40px;
&__icon { &__icon {

View file

@ -168,6 +168,9 @@ const renderViewItem = (blocks: IBlock[], title: string, deckType: string) => {
hPath = getNotebookName(item.box) + getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false); hPath = getNotebookName(item.box) + getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false);
} else { } else {
hPath = getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false).replace("/" + pathArray.join("/"), ""); 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}"> 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> <svg class="b3-list-item__graphic"><use xlink:href="#${getIconByType(item.type)}"></use></svg>

View file

@ -346,7 +346,11 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
iconHTML: Constants.ZWSP, iconHTML: Constants.ZWSP,
label: window.siyuan.languages.mgmt, label: window.siyuan.languages.mgmt,
click: () => { 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 /// #if MOBILE
closePanel(); closePanel();
/// #endif /// #endif