Release 0.2.0 #5

Merged
HEL merged 18 commits from dev into main 2024-11-09 14:00:05 +00:00
2 changed files with 10 additions and 6 deletions
Showing only changes of commit b33531bef5 - Show all commits

View File

@ -19,14 +19,15 @@
),)
}
#let _col(p1, p2, width: auto, margin: 0, min-width: 0) = {
#let _col(p1, p2, width: auto, margin: 0, min-width: 0, max-width: none) = {
return ((
type: "col",
p1: p1,
p2: p2,
width: width,
margin: margin,
min-width: min-width
min-width: min-width,
max-width: max-width
),)
}

View File

@ -218,10 +218,13 @@
if elmt.width != auto {
widths.at(i) = normalize-units(elmt.width)
}
widths.at(i) = calc.max(
widths.at(i),
normalize-units(elmt.min-width)
) + normalize-units(elmt.margin)
let width = widths.at(i)
width = calc.max(width, normalize-units(elmt.min-width))
if elmt.max-width != none {
width = calc.min(width, normalize-units(elmt.max-width))
}
widths.at(i) = width + normalize-units(elmt.margin)
}
}