Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(breadcrumb): improve overflow support
Elian Doran3fe45db6ef97
diff --git a/apps/client/src/widgets/Breadcrumb.css b/apps/client/src/widgets/Breadcrumb.cssindex df9f5c6f06..fee2e97998 100644--- a/apps/client/src/widgets/Breadcrumb.css+++ b/apps/client/src/widgets/Breadcrumb.css@@ -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;diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsxindex e24704e0ac..632d2c9719 100644--- a/apps/client/src/widgets/Breadcrumb.tsx+++ b/apps/client/src/widgets/Breadcrumb.tsx@@ -43,6 +43,7 @@ function BreadcrumbSeparator({ notePath, noteContext, activeNotePath }: { notePanoSelectButtonStylebuttonClassName="icon-action"hideToggleArrow+ dropdownOptions={{ popperConfig: { strategy: "fixed" } }}><BreadcrumbSeparatorDropdownContent notePath={notePath} noteContext={noteContext} activeNotePath={activeNotePath} /></Dropdown>