mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
ca405a5f89
commit
c0f738fcef
3 changed files with 9 additions and 2 deletions
|
|
@ -36,7 +36,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.b3-list-item {
|
.b3-list-item {
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue