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
{ color : "blue"
, "text-decoration": "underline" , "text-decoration": "underline"
} }
else { color : "" else { color : ""
, "text-decoration": "none" , "text-decoration": "none"
} }
, on: { click: onClick } , on: { click: onClick }
} } [
[ nodeText { isSelected: isSelected targetId valAction nodeText { isSelected: isSelected targetId valAction
, name: " " <> name , name: " " <> name
, handed , 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