feat(breadcrumb): improve overflow support

This commit is contained in:
Elian Doran 2025-12-08 22:17:49 +02:00
parent 11467775b6
commit 3fe45db6ef
No known key found for this signature in database
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,7 @@
.breadcrumb-row {
position: relative;
}
.component.breadcrumb {
contain: none;
margin: 0 10px;
@ -8,11 +12,18 @@
flex-wrap: nowrap;
overflow: hidden;
> span,
> span > span {
display: flex;
align-items: center;
min-width: 0;
}
a {
color: inherit;
text-decoration: none;
width: 100%;
max-width: 200px;
min-width: 0;
max-width: 100px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;

View File

@ -43,6 +43,7 @@ function BreadcrumbSeparator({ notePath, noteContext, activeNotePath }: { notePa
noSelectButtonStyle
buttonClassName="icon-action"
hideToggleArrow
dropdownOptions={{ popperConfig: { strategy: "fixed" } }}
>
<BreadcrumbSeparatorDropdownContent notePath={notePath} noteContext={noteContext} activeNotePath={activeNotePath} />
</Dropdown>