Skip to content

Build your personal knowledge base with Trilium Notes

chore(layout): hide breadcrumb badges if not on new layout

Elian Doranefe7fc0ee798
diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx
index 076a76522b..e3415bf4bd 100644
--- a/apps/client/src/layouts/desktop_layout.tsx
+++ b/apps/client/src/layouts/desktop_layout.tsx
@@ -140,7 +140,7 @@ export default class DesktopLayout {
.class("breadcrumb-row")
.cssBlock(".breadcrumb-row > * { margin: 5px; }")
.child(<Breadcrumb />)
- .child(<BreadcrumbBadges />)
+ .optChild(isNewLayout, <BreadcrumbBadges />)
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
.child(<MovePaneButton direction="left" />)
.child(<MovePaneButton direction="right" />)