diff --git a/apps/client/src/components/app_context.ts b/apps/client/src/components/app_context.ts index 7bc544e7e..36d364049 100644 --- a/apps/client/src/components/app_context.ts +++ b/apps/client/src/components/app_context.ts @@ -499,6 +499,10 @@ type EventMappings = { noteIds: string[]; }; refreshData: { ntxId: string | null | undefined }; + contentSafeMarginChanged: { + top: number; + noteContext: NoteContext; + } }; export type EventListener = { diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx index e26664bf9..4fa5fe209 100644 --- a/apps/client/src/layouts/desktop_layout.tsx +++ b/apps/client/src/layouts/desktop_layout.tsx @@ -3,6 +3,7 @@ import { DESKTOP_FLOATING_BUTTONS } from "../widgets/FloatingButtonsDefinitions. import ApiLog from "../widgets/api_log.jsx"; import ClosePaneButton from "../widgets/buttons/close_pane_button.js"; import CloseZenModeButton from "../widgets/close_zen_button.jsx"; +import ContentHeader from "../widgets/content-header.js"; import CreatePaneButton from "../widgets/buttons/create_pane_button.js"; import FindWidget from "../widgets/find.js"; import FlexContainer from "../widgets/containers/flex_container.js"; @@ -131,13 +132,14 @@ export default class DesktopLayout { ) .child() .child() - .child() .child(new WatchedFileUpdateStatusWidget()) .child() .child( new ScrollingContainer() .filling() - .child() + .child(new ContentHeader() + .child() + ) .child(new PromotedAttributesWidget()) .child() .child(new NoteDetailWidget()) diff --git a/apps/client/src/layouts/mobile_layout.tsx b/apps/client/src/layouts/mobile_layout.tsx index 517d50e36..445df3922 100644 --- a/apps/client/src/layouts/mobile_layout.tsx +++ b/apps/client/src/layouts/mobile_layout.tsx @@ -28,6 +28,7 @@ import StandaloneRibbonAdapter from "../widgets/ribbon/components/StandaloneRibb import TabRowWidget from "../widgets/tab_row.js"; import ToggleSidebarButton from "../widgets/mobile_widgets/toggle_sidebar_button.jsx"; import type AppContext from "../components/app_context.js"; +import ContentHeader from "../widgets/content-header.js"; const MOBILE_CSS = `