mirror of
https://github.com/zadam/trilium.git
synced 2025-12-19 22:59:53 +01:00
chore(ribbon): remove label for the root entirely
This commit is contained in:
@@ -26,7 +26,7 @@ export default function Breadcrumb() {
|
|||||||
<>
|
<>
|
||||||
{notePath.slice(0, INITIAL_ITEMS).map((item, index) => (
|
{notePath.slice(0, INITIAL_ITEMS).map((item, index) => (
|
||||||
<Fragment key={item}>
|
<Fragment key={item}>
|
||||||
{index === 0 && notePath.length > 1
|
{index === 0
|
||||||
? <BreadcrumbRoot noteContext={noteContext} />
|
? <BreadcrumbRoot noteContext={noteContext} />
|
||||||
: <BreadcrumbItem notePath={item} activeNotePath={noteContext?.notePath ?? ""} />
|
: <BreadcrumbItem notePath={item} activeNotePath={noteContext?.notePath ?? ""} />
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ export default function Breadcrumb() {
|
|||||||
) : (
|
) : (
|
||||||
notePath.map((item, index) => (
|
notePath.map((item, index) => (
|
||||||
<Fragment key={item}>
|
<Fragment key={item}>
|
||||||
{index === 0 && notePath.length > 1
|
{index === 0
|
||||||
? <BreadcrumbRoot noteContext={noteContext} />
|
? <BreadcrumbRoot noteContext={noteContext} />
|
||||||
: <BreadcrumbItem notePath={item} activeNotePath={noteContext?.notePath ?? ""} />
|
: <BreadcrumbItem notePath={item} activeNotePath={noteContext?.notePath ?? ""} />
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user