Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: release space taken by properties pane for new note/tab Signed-off-by: 01zulfi <[email protected]>

01zulfif7914c57c7a3
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index c2ac8d340..958e8ced6 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -226,11 +226,13 @@ export default function TabsView() {
<TableOfContents sessionId={activeSession.id} />
</Pane>
) : null}
- {arePropertiesVisible && activeSession && (
- <Pane id="properties-pane" initialSize={250} minSize={250}>
- <Properties sessionId={activeSession.id} />
- </Pane>
- )}
+ {arePropertiesVisible &&
+ activeSession &&
+ activeSession.type !== "new" && (
+ <Pane id="properties-pane" initialSize={250} minSize={250}>
+ <Properties sessionId={activeSession.id} />
+ </Pane>
+ )}
</SplitPane>
<DropZone overlayRef={overlayRef} />
</ScopedThemeProvider>