Add margin to box headings

This commit is contained in:
Alexander Heldt
2025-12-26 11:56:24 +01:00
parent dc7af935ec
commit 4329625cf4
2 changed files with 5 additions and 4 deletions

View File

@@ -57,8 +57,9 @@ pub fn box_with_heading(
height: Int,
heading: String,
) -> Buffer {
let heading_margin = 1
box(buffer, x, y, width, height)
|> text(heading, x, y)
|> text(heading, x + heading_margin, y)
}
fn horizontal_line(