Hello
I’m trying to customize outline.entry so that the body doesn’t extend into the page number area when it wraps to multiple lines.
To do this, I measure the page number’s width and wrap the body and fill in a box with width: 100% - page-width . However, this breaks the vertical alignment of the page number.
If the title is long and wraps to multiple lines, the page number sticks to the first line of the text, instead of the last line.
show outline.entry: it => {
let page-width = measure(it.page()).width
let body-fill = box(width: 100% - page-width, it.body()+box(width: 1fr, inset: (left: 0.15em, right: 0.15em), it.fill))
link(
it.element.location(),
it.indented(it.prefix(),
body-fill
+sym.wj
+it.page()
)
)
}

Is there a way to restrict the width of the body while keeping the page number aligned to the bottom (last line) of the wrapped text?
