From 5f1071ed377c06c569269b83d30ff393b665674d Mon Sep 17 00:00:00 2001 From: Bogdan Deynega Date: Fri, 18 Jun 2021 11:41:18 +0200 Subject: [PATCH] Fixed padding bug --- client/src/Components/Tree/ClassNode.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/Components/Tree/ClassNode.tsx b/client/src/Components/Tree/ClassNode.tsx index 0468c5671..d1fc17ed9 100644 --- a/client/src/Components/Tree/ClassNode.tsx +++ b/client/src/Components/Tree/ClassNode.tsx @@ -19,10 +19,11 @@ const ClassNode = ({parentPath, pythonClass, selection, setSelection, moduleName const hasMethods = isEmptyList(pythonClass.methods); const path = parentPath.concat(pythonClass.name); const cssClasses = classNames( - "pl-3rem", "tree-view-row", - { + "tree-view-row", { "text-muted": !hasMethods, "cursor-na":!hasMethods, + "pl-3-5rem": !hasMethods, + "pl-3rem": hasMethods, "selected": (selection.join() === path.join()) && hasMethods, } );