feat(breadcrumb): apply ellipsis to dropdown

This commit is contained in:
Elian Doran 2025-12-08 22:40:37 +02:00
parent 70ded4c2cd
commit 4cfa403657
No known key found for this signature in database
2 changed files with 10 additions and 1 deletions

View file

@ -36,4 +36,13 @@
margin: 0;
padding: 0;
}
.dropdown-item span,
.dropdown-item strong {
max-width: 200px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
}
}

View file

@ -66,7 +66,7 @@ function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNoteP
onClick={() => noteContext?.setNote(childNotePath)}
>
{childNotePath !== activeNotePath
? note.title
? <span>{note.title}</span>
: <strong>{note.title}</strong>}
</FormListItem>
</li>