feat(breadcrumb): indicate archived in separator menu

This commit is contained in:
Elian Doran 2025-12-16 15:05:33 +02:00
parent 66ed88c409
commit 5449d033bf
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@
&:hover { &:hover {
color: var(--custom-color, inherit); color: var(--custom-color, inherit);
} }
}
&.archived { .archived {
opacity: 0.6; opacity: 0.6;
}
} }
> span, > span,

View File

@ -199,7 +199,7 @@ function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNoteP
return <li key={note.noteId}> return <li key={note.noteId}>
<FormListItem <FormListItem
icon={note.getIcon()} icon={note.getIcon()}
className={note.getColorClass()} className={clsx(note.getColorClass(), note.isArchived && "archived")}
onClick={() => noteContext?.setNote(childNotePath)} onClick={() => noteContext?.setNote(childNotePath)}
> >
{childNotePath !== activeNotePath {childNotePath !== activeNotePath