Skip to content

Commit

Permalink
Roof triangles
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed May 6, 2024
1 parent f352dd7 commit bdaa630
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/web/TreeBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ export function TreeBrowser(props: {
</div>
) : children.length ? (
<div className="tree-roof" onClick={() => setExpanded(true)}>
<svg
height="8"
width="100%"
preserveAspectRatio="none"
viewBox="0 0 50 10"
>
<path d="M25 0 L50 8 L0 8 Z" fill="none" stroke="black" />
</svg>
<div className="tree-word">{treeText(tree) || '(expand)'}</div>
</div>
) : undefined}
Expand Down

0 comments on commit bdaa630

Please sign in to comment.