mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 02:14:25 +01:00
feat(breadcrumb): improve overflow support
This commit is contained in:
parent
11467775b6
commit
3fe45db6ef
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user