1 Commits

Author SHA1 Message Date
Alexander Heldt
89ef014c98 wip 2025-12-02 20:48:34 +01:00

View File

@@ -192,7 +192,8 @@ pub fn render_generic(
let parent = let parent =
render_into render_into
|> renders.box(cx, cy, width, height) |> renders.box(cx, cy, width, height)
|> renders.text(node.content, cx, cy) // + 2 for header margin
|> renders.text(node.content, cx + 2, cy)
list.index_map(node.children, fn(child, i) { #(i, child) }) list.index_map(node.children, fn(child, i) { #(i, child) })
|> list.fold(parent, fn(acc_into, ic) { |> list.fold(parent, fn(acc_into, ic) {