web: fix empty root notebook indentation

This commit is contained in:
Abdullah Atta
2024-02-16 17:32:07 +05:00
parent 34be765ac5
commit c03d25ece6

View File

@@ -129,7 +129,8 @@ function SubNotebook(props: SubNotebookProps) {
menuItems={subNotebookMenuItems}
context={{ refresh }}
sx={{
paddingLeft: depth === 0 ? 0 : `${16 * depth}px`
paddingLeft:
depth === 0 ? (isExpandable ? 0 : "5px") : `${16 * depth - 5}px`
}}
/>
);