chore(layout): revert breadcrumb row

This commit is contained in:
Elian Doran 2025-12-13 10:26:25 +02:00
parent 15b5885982
commit c97038fffd
No known key found for this signature in database

View File

@ -82,8 +82,16 @@ export default class DesktopLayout {
const titleRow = new FlexContainer("row") const titleRow = new FlexContainer("row")
.class("title-row") .class("title-row")
.cssBlock(".title-row > * { margin: 5px; }")
.child(<NoteIconWidget />) .child(<NoteIconWidget />)
.child(<NoteTitleWidget />); .child(<NoteTitleWidget />)
.optChild(isNewLayout, <BreadcrumbBadges />)
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
.child(<MovePaneButton direction="left" />)
.child(<MovePaneButton direction="right" />)
.child(<ClosePaneButton />)
.child(<CreatePaneButton />)
.optChild(isNewLayout, <NoteActions />);
const rootContainer = new RootContainer(true) const rootContainer = new RootContainer(true)
.setParent(appContext) .setParent(appContext)
@ -137,18 +145,6 @@ export default class DesktopLayout {
.child( .child(
new SplitNoteContainer(() => new SplitNoteContainer(() =>
new NoteWrapperWidget() new NoteWrapperWidget()
.child(
new FlexContainer("row")
.class("breadcrumb-row")
.cssBlock(".breadcrumb-row > * { margin: 5px; }")
.optChild(isNewLayout, <BreadcrumbBadges />)
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
.child(<MovePaneButton direction="left" />)
.child(<MovePaneButton direction="right" />)
.child(<ClosePaneButton />)
.child(<CreatePaneButton />)
.optChild(isNewLayout, <NoteActions />)
)
.optChild(!isFloatingTitlebar, titleRow) .optChild(!isFloatingTitlebar, titleRow)
.optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>) .optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>)
.optChild(isNewLayout, <Ribbon />) .optChild(isNewLayout, <Ribbon />)