web: fix notebook indentation

This commit is contained in:
Abdullah Atta
2024-02-17 21:45:53 +05:00
parent 72d5072cac
commit 47c433b2c9

View File

@@ -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`
}}
/>
);