mirror of
https://github.com/zadam/trilium.git
synced 2026-01-05 22:24:25 +01:00
feat(breadcrumbs): display separator even if no child notes
This commit is contained in:
parent
c1e01467a5
commit
8434549a9b
@ -65,8 +65,7 @@ export default function Breadcrumb() {
|
||||
? <BreadcrumbRoot noteContext={noteContext} />
|
||||
: <BreadcrumbItem index={index} notePath={item} notePathLength={notePaths.length} noteContext={noteContext} parentComponent={parentComponent} />
|
||||
}
|
||||
{(index < notePaths.length - 1 || note?.hasChildren()) &&
|
||||
<BreadcrumbSeparator notePath={item} activeNotePath={notePaths[index + 1]} {...separatorProps} />}
|
||||
<BreadcrumbSeparator notePath={item} activeNotePath={notePaths[index + 1]} {...separatorProps} />
|
||||
</Fragment>
|
||||
))
|
||||
)}
|
||||
@ -226,7 +225,7 @@ function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNoteP
|
||||
</li>;
|
||||
})}
|
||||
|
||||
<FormDropdownDivider />
|
||||
{childNotes.length > 0 && <FormDropdownDivider />}
|
||||
<FormListItem
|
||||
icon="bx bx-plus"
|
||||
onClick={() => note_create.createNote(notePath, { activate: true })}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user