Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Hotfix - Einrückung von Klassen ohne Methoden konsistent machen #51

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client/src/Components/Tree/ClassNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
);
Expand Down