mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 05:39:55 +01:00
feat(breadcrumb): apply ellipsis to dropdown
This commit is contained in:
@@ -36,4 +36,13 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown-item span,
|
||||||
|
.dropdown-item strong {
|
||||||
|
max-width: 200px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNoteP
|
|||||||
onClick={() => noteContext?.setNote(childNotePath)}
|
onClick={() => noteContext?.setNote(childNotePath)}
|
||||||
>
|
>
|
||||||
{childNotePath !== activeNotePath
|
{childNotePath !== activeNotePath
|
||||||
? note.title
|
? <span>{note.title}</span>
|
||||||
: <strong>{note.title}</strong>}
|
: <strong>{note.title}</strong>}
|
||||||
</FormListItem>
|
</FormListItem>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user