Skip to content

Commit

Permalink
Vjp/fix tree item alignment (#107)
Browse files Browse the repository at this point in the history
* Use flex so carat stays aligned with checkbox with large text

* Bump to 0.18.2
  • Loading branch information
Vance Palacio authored Dec 18, 2019
1 parent bf58036 commit 3ca55fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purescript-ocelot",
"version": "0.18.1",
"version": "0.18.2",
"private": true,
"scripts": {
"build-all": "yarn run build-ui && yarn run build-css",
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Tree/Component.purs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ component =
renderRow depth indexPath itemPath ix (Node { selected, expanded, children, value }) = do
let path = A.cons ix indexPath
[ HH.div
[ css $ "border-b py-2 " <> ("pl-" <> (show (depth * 10))) ]
[ css $ "flex border-b py-2 pr-2 " <> ("pl-" <> (show (depth * 10))) ]
[ renderCarat children expanded path
, HH.div
[ css "inline-flex" ]
Expand Down

0 comments on commit 3ca55fc

Please sign in to comment.