Skip to content

Build your personal knowledge base with Trilium Notes

feat(layout): relocate title into scrollable region

Elian Doran9942950710cd
diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx
index 50dc05d99e..90b8566e9f 100644
--- a/apps/client/src/layouts/desktop_layout.tsx
+++ b/apps/client/src/layouts/desktop_layout.tsx
@@ -117,13 +117,11 @@ export default class DesktopLayout {
new NoteWrapperWidget()
.child(
new FlexContainer("row")
- .class("title-row")
- .css("height", "50px")
- .css("min-height", "50px")
+ .class("breadcrumb-row")
+ .css("height", "30px")
+ .css("min-height", "30px")
.css("align-items", "center")
- .cssBlock(".title-row > * { margin: 5px; }")
- .child(<NoteIconWidget />)
- .child(<NoteTitleWidget />)
+ .cssBlock(".breadcrumb-row > * { margin: 5px; }")
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
.child(<MovePaneButton direction="left" />)
.child(<MovePaneButton direction="right" />)
@@ -137,6 +135,16 @@ export default class DesktopLayout {
new ScrollingContainer()
.filling()
.child(new ContentHeader()
+ .child(new FlexContainer("row")
+ .class("title-row")
+ .css("height", "50px")
+ .css("margin", "1em")
+ .css("min-height", "50px")
+ .css("align-items", "center")
+ .cssBlock(".title-row > * { margin: 5px; }")
+ .child(<NoteIconWidget />)
+ .child(<NoteTitleWidget />)
+ )
.child(<ReadOnlyNoteInfoBar />)
.child(<SharedInfo />)
)
diff --git a/apps/client/src/widgets/note_title.css b/apps/client/src/widgets/note_title.css
index dd56edf96c..477d93209b 100644
--- a/apps/client/src/widgets/note_title.css
+++ b/apps/client/src/widgets/note_title.css
@@ -27,4 +27,4 @@ body.mobile .note-title-widget input.note-title {
body.desktop .note-title-widget input.note-title {
font-size: 180%;
-}
\ No newline at end of file
+}