diff --git a/TODO.md b/TODO.md index 2df6e84..cefe5b4 100644 --- a/TODO.md +++ b/TODO.md @@ -14,6 +14,7 @@ - [x] Slanted arrows - [x] Different types of arrow tips - [x] Sequence comment alignment +- [x] Fix group size with syncs - [ ] Fix column spacing with notes over multiple columns - [ ] Fix notes with arrows from start / to end / small arrows - [ ] Fix group size with self arrows + notes diff --git a/src/utils.typ b/src/utils.typ index 95994df..b4eae86 100644 --- a/src/utils.typ +++ b/src/utils.typ @@ -21,6 +21,10 @@ let (i0, i1) = get-group-span(participants, elmt) min-i = calc.min(min-i, i0) max-i = calc.max(max-i, i1) + } else if elmt.type == "sync" { + let (i0, i1) = get-group-span(participants, elmt) + min-i = calc.min(min-i, i0) + max-i = calc.max(max-i, i1) } } return (min-i, max-i)