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

Commit

Permalink
Merge pull request #51 from lars-reimann/Einrückung_von_Klassen_ohne_…
Browse files Browse the repository at this point in the history
…Methoden_konsistent_machen

Hotfix - Einrückung von Klassen ohne Methoden konsistent machen
  • Loading branch information
lars-reimann authored Jun 18, 2021
2 parents d96db9e + 5f1071e commit 73f69a8
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 73f69a8

Please sign in to comment.