Replaced Node.content with Node.heading

This commit is contained in:
Alexander Heldt
2025-12-26 11:53:08 +01:00
parent 0c4c085dd0
commit dc7af935ec
7 changed files with 62 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
import gleam/dict
import gleam/io
import gleam/option.{Some}
import gleam/string
import gleeunit
import gleeunit/should
@@ -17,7 +18,7 @@ pub fn percent_layout_test() {
#(
Section("Row1"),
layout.Row(
content: "row 1",
heading: Some("row 1"),
style: Style(dimensions: Percent(width: 100, height: 50)),
children: [
Section("A"),
@@ -28,21 +29,21 @@ pub fn percent_layout_test() {
#(
Section("A"),
layout.Cell(
content: "cell 1",
heading: Some("cell 1"),
style: Style(dimensions: Percent(width: 50, height: 100)),
),
),
#(
Section("B"),
layout.Cell(
content: "cell 2",
heading: Some("cell 2"),
style: Style(dimensions: Percent(width: 50, height: 100)),
),
),
#(
Section("Row2"),
layout.Row(
content: "row 1",
heading: Some("row 1"),
style: Style(dimensions: Percent(width: 100, height: 50)),
children: [],
),