Skip to content

Commit b8375ae

Browse files
authored
Fix: Made section titles stick to content (#5)
1 parent 1d04716 commit b8375ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib.typ

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
stroke: (left: 3pt + color),
4040
radius: (right: 2pt),
4141
)[
42-
#block(spacing: 0pt)[#text(weight: "bold", fill: color)[#label]]
42+
#block(
43+
spacing: 0pt,
44+
sticky: true,
45+
)[#text(weight: "bold", fill: color)[#label]]
4346
#v(5pt)
4447
#body
4548
]

0 commit comments

Comments
 (0)