mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 19:30:16 +01:00
🎨 The backlink panel no longer displays breadcrumbs of the first-level blocks https://github.com/siyuan-note/siyuan/issues/12862
This commit is contained in:
parent
8b63066430
commit
b1e7908b19
2 changed files with 10 additions and 4 deletions
|
|
@ -100,6 +100,10 @@ export const getBacklinkHeadingMore = (moreElement: HTMLElement) => {
|
|||
};
|
||||
|
||||
export const genBreadcrumb = (blockPaths: IBreadcrumb[], renderFirst = false) => {
|
||||
if (1 > blockPaths.length) {
|
||||
return "";
|
||||
}
|
||||
|
||||
let html = "";
|
||||
blockPaths.forEach((item, index) => {
|
||||
if (index === 0 && !renderFirst) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue