From 9942950710cde6ad2ae9579e93b078e1f4398fc3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 8 Dec 2025 14:54:57 +0200 Subject: [PATCH] feat(layout): relocate title into scrollable region --- apps/client/src/layouts/desktop_layout.tsx | 20 ++++++++++++++------ apps/client/src/widgets/note_title.css | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx index 50dc05d99..90b8566e9 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() - .child() + .cssBlock(".breadcrumb-row > * { margin: 5px; }") .child() .child() .child() @@ -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() + .child() + ) .child() .child() ) diff --git a/apps/client/src/widgets/note_title.css b/apps/client/src/widgets/note_title.css index dd56edf96..477d93209 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 +}