Hi, I'm attempting to format titles for all of my pages. Unfortunately, I'm running into an issue when the length of the title is longer than the width of the column. At first, I was simply putting the title and 2 lines into a grid with 3 columns, but it results in the title forming a new line instead of shrinking the adjacent columns. I thought of using the measure function to measure the width of the title, but I don't understand how.
#Changing column width based on text length
1 messages · Page 1 of 1 (latest)
Above is the template i made in google slides.
These are the two results with short and long titles
[
#line(length: 100%)
],
[
#box(fill: entry-type-metadata.at(context.type), outset: 10pt, [#context.title])
],
[
#line(length: 100%)
]))```
I think you could set #grid(columns: (1fr, auto, 1fr), ...), so the middle cell will occupy as much space as needed