From ea3513622721a69442c5e047695f7de9d15dee98 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Sat, 17 Feb 2024 21:45:53 +0500 Subject: [PATCH] web: fix notebook indentation --- apps/web/src/components/sub-notebook/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/sub-notebook/index.tsx b/apps/web/src/components/sub-notebook/index.tsx index bb051b0b4..af4517275 100644 --- a/apps/web/src/components/sub-notebook/index.tsx +++ b/apps/web/src/components/sub-notebook/index.tsx @@ -130,7 +130,11 @@ function SubNotebook(props: SubNotebookProps) { context={{ refresh }} sx={{ paddingLeft: - depth === 0 ? (isExpandable ? 0 : "5px") : `${16 * depth - 5}px` + depth === 0 + ? isExpandable + ? 0 + : "5px" + : `${16 * depth - (isExpandable ? 5 : 0)}px` }} /> );