A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: properties & toc side bars must be below the titlebar
Abdullah Attad248b8e2b853
diff --git a/apps/web/src/components/editor/table-of-contents.tsx b/apps/web/src/components/editor/table-of-contents.tsxindex 08f5026ad..11892b7e3 100644--- a/apps/web/src/components/editor/table-of-contents.tsx+++ b/apps/web/src/components/editor/table-of-contents.tsx@@ -46,6 +46,7 @@ import { Section } from "../properties";import { scrollIntoViewById } from "@notesnook/editor";import { Button, Flex, Text } from "@theme-ui/components";import { useEditorManager } from "./manager";+import { TITLE_BAR_HEIGHT } from "../title-bar";type TableOfContentsProps = {sessionId: string;@@ -100,7 +101,7 @@ function TableOfContents(props: TableOfContentsProps) {display: "flex",position: "absolute",right: 0,- top: 0,+ top: TITLE_BAR_HEIGHT,zIndex: 999,height: "100%",width: "300px",diff --git a/apps/web/src/components/properties/index.tsx b/apps/web/src/components/properties/index.tsxindex 7907c8c13..f071b69c3 100644--- a/apps/web/src/components/properties/index.tsx+++ b/apps/web/src/components/properties/index.tsx@@ -61,6 +61,7 @@ import {} from "@notesnook/core";import { VirtualizedTable } from "../virtualized-table";import { TextSlice } from "@notesnook/core/dist/utils/content-block";+import { TITLE_BAR_HEIGHT } from "../title-bar";const tools = [{ key: "pin", property: "pinned", icon: Pin, label: "Pin" },@@ -129,7 +130,7 @@ function EditorProperties(props: EditorPropertiesProps) {sx={{display: "flex",position: "absolute",- top: 0,+ top: TITLE_BAR_HEIGHT,right: 0,zIndex: 999,height: "100%",diff --git a/apps/web/src/components/title-bar/index.tsx b/apps/web/src/components/title-bar/index.tsxindex 476cf3c21..c783be214 100644--- a/apps/web/src/components/title-bar/index.tsx+++ b/apps/web/src/components/title-bar/index.tsx@@ -29,6 +29,7 @@ import {} from "../icons";import { BaseThemeProvider } from "../theme-provider";+export const TITLE_BAR_HEIGHT = 37.8;export function TitleBar() {const { isMaximized, isFullscreen, hasNativeWindowControls } =useWindowControls();@@ -65,7 +66,7 @@ export function TitleBar() {scope="titleBar"sx={{background: "background",- height: 37.8,+ height: TITLE_BAR_HEIGHT,display: "flex",borderBottom: "1px solid var(--border)",...(!isFullscreen && hasNativeWindowControls