Skip to content

Commit 09fd5d8

Browse files
authored
Merge pull request #9002 from streetwriters/web/new-note-properties-pane
web: release space taken by properties pane for new note/tab
2 parents ea63e6a + f7914c5 commit 09fd5d8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

apps/web/src/components/editor/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,13 @@ export default function TabsView() {
226226
<TableOfContents sessionId={activeSession.id} />
227227
</Pane>
228228
) : null}
229-
{arePropertiesVisible && activeSession && (
230-
<Pane id="properties-pane" initialSize={250} minSize={250}>
231-
<Properties sessionId={activeSession.id} />
232-
</Pane>
233-
)}
229+
{arePropertiesVisible &&
230+
activeSession &&
231+
activeSession.type !== "new" && (
232+
<Pane id="properties-pane" initialSize={250} minSize={250}>
233+
<Properties sessionId={activeSession.id} />
234+
</Pane>
235+
)}
234236
</SplitPane>
235237
<DropZone overlayRef={overlayRef} />
236238
</ScopedThemeProvider>

0 commit comments

Comments
 (0)