diff options
Diffstat (limited to 'components/Sidebar/index.tsx')
-rw-r--r-- | components/Sidebar/index.tsx | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx index 21465c6..141c26d 100644 --- a/components/Sidebar/index.tsx +++ b/components/Sidebar/index.tsx @@ -199,34 +199,36 @@ const Sidebar = (props: SidebarProps) => { /> )} > - <VStack - flexGrow={1} - // overflowY="scroll" - alignItems="left" - bg="alt.100" - paddingLeft={4} - > - <Title previewNode={previewRoamNode} /> - <TagBar - {...{ filter, setFilter, tagColors, setTagColors, openContextMenu, previewNode }} - /> - <Note - {...{ - setPreviewNode, - previewNode, - nodeById, - nodeByCite, - setSidebarHighlightedNode, - justification, - justificationList, - linksByNodeId, - openContextMenu, - outline, - setOutline, - collapse, - }} - /> - </VStack> + {previewRoamNode && ( + <VStack + flexGrow={1} + // overflowY="scroll" + alignItems="left" + bg="alt.100" + paddingLeft={4} + > + <Title previewNode={previewRoamNode} /> + <TagBar + {...{ filter, setFilter, tagColors, setTagColors, openContextMenu, previewNode }} + /> + <Note + {...{ + setPreviewNode, + previewNode, + nodeById, + nodeByCite, + setSidebarHighlightedNode, + justification, + justificationList, + linksByNodeId, + openContextMenu, + outline, + setOutline, + collapse, + }} + /> + </VStack> + )} </Scrollbars> </Flex> </Resizable> |