chore(ribbon): remove label for the root entirely

This commit is contained in:
Elian Doran 2025-12-09 07:45:38 +02:00
parent 608ab53933
commit 5973e5ca26
No known key found for this signature in database

View File

@ -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 ?? ""} />
} }