From 89ef014c98fb106b8213b81550935a3e295e5c7f Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 2 Dec 2025 20:48:34 +0100 Subject: [PATCH] wip --- src/musicplayer/ui/layout.gleam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/musicplayer/ui/layout.gleam b/src/musicplayer/ui/layout.gleam index cd812a1..7be89d4 100644 --- a/src/musicplayer/ui/layout.gleam +++ b/src/musicplayer/ui/layout.gleam @@ -192,7 +192,8 @@ pub fn render_generic( let parent = render_into |> 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.fold(parent, fn(acc_into, ic) {