Commit 19f5fc3d authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[tree] fixes to subtree css

parent dd211c20
...@@ -63,4 +63,11 @@ ...@@ -63,4 +63,11 @@
opacity: var(--over50, 0); opacity: var(--over50, 0);
} }
#node-popup-tooltip .tree .node {
margin-top: 5px;
}
#node-popup-tooltip .tree .children .node {
padding-left: 15px;
}
/*# sourceMappingURL=Tree.css.map */ /*# sourceMappingURL=Tree.css.map */
...@@ -60,3 +60,11 @@ ...@@ -60,3 +60,11 @@
&:after &:after
opacity: var(--over50, 0) opacity: var(--over50, 0)
#node-popup-tooltip
.tree
.node
margin-top: 5px
.children
.node
padding-left: 15px
...@@ -118,24 +118,25 @@ subTreeTreeViewCpt = R2.hooksComponent thisModule "subTreeTreeViewCpt" cpt ...@@ -118,24 +118,25 @@ subTreeTreeViewCpt = R2.hooksComponent thisModule "subTreeTreeViewCpt" cpt
GT.LeftHanded -> A.reverse GT.LeftHanded -> A.reverse
GT.RightHanded -> identity GT.RightHanded -> identity
pure $ H.div {} $ (ordering [ H.div { className: "node " <> GT.fldr nodeType true} [] pure $ H.div {} $ ordering [
, H.span { style : if validNodeType H.div { className: "node " <> GT.fldr nodeType true} [
then { color : "blue" H.span { style : if validNodeType then
, "text-decoration": "underline" { color : "blue"
} , "text-decoration": "underline"
else { color : "" }
, "text-decoration": "none" else { color : ""
} , "text-decoration": "none"
, on: { click: onClick } }
} , on: { click: onClick }
[ nodeText { isSelected: isSelected targetId valAction } [
, name: " " <> name nodeText { isSelected: isSelected targetId valAction
, handed , name: " " <> name
} , handed
] }
] , H.span { className: "children" } children
) ]
<> children ]
]
where where
SubTreeParams { valitypes } = subTreeParams SubTreeParams { valitypes } = subTreeParams
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment