From c03d25ece6e1d58cc43fb295ee626efdad43905b Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 16 Feb 2024 17:32:07 +0500 Subject: [PATCH] web: fix empty root notebook indentation --- apps/web/src/components/sub-notebook/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/sub-notebook/index.tsx b/apps/web/src/components/sub-notebook/index.tsx index a5f506133..bb051b0b4 100644 --- a/apps/web/src/components/sub-notebook/index.tsx +++ b/apps/web/src/components/sub-notebook/index.tsx @@ -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` }} /> );