iris: make span compaction explicit

This commit is contained in:
iris committed 2026-09-12 21:18:09 -04:00
1 parent 54e6765a1d
commit 5f4975285d
4 files changed
+90 -19

No files matched your search

+2
View File
@@ -100,10 +100,12 @@ where
rect(PaintId::PURPLE).sized((50, 50)).align(Align::TOP),
)
.span(Dir::RIGHT)
.compact()
.center(),
wtext("pretty cool right?").size(50),
)
.span(Dir::DOWN)
.compact()
.add(rsc);
let texts = Span::empty(Dir::DOWN).gap(10).add(rsc);