diff --git a/src/OrgAst.module.css b/src/OrgAst.module.css index 982caae..36792e0 100644 --- a/src/OrgAst.module.css +++ b/src/OrgAst.module.css @@ -1,9 +1,14 @@ .OrgAst { flex: 1; - background: green; + background: #eeeeee; + padding: 5px; + overflow: scroll; } .OrgAstNode { + border: 1px solid #000000; + background: #ffffff; + padding: 5px; } .OrgAstNodeType { diff --git a/src/OrgAst.tsx b/src/OrgAst.tsx index 6d68b56..2332548 100644 --- a/src/OrgAst.tsx +++ b/src/OrgAst.tsx @@ -25,6 +25,9 @@ const OrgAstNode = (props: {node: any}) => { return (
{props.node["ast-node"]}
+ {Array.isArray(props.node.children) && props.node.children.length > 0 ? (<> + Has children + ) : null}
); }