Stop composer layout recursion on spaces

This commit is contained in:
iris committed 2026-09-09 19:54:53 -04:00
1 parent 5ece49b8d9
commit e5fee03da8
4 files changed
+86 -14

No files matched your search

+7
View File
@@ -112,6 +112,13 @@ where
// the transcript: measured at 58px of stray text for a 475px message
// in a 417px box.
let content = field
// A wrapping editor occupies the composer's width even when its
// current text is short. Without this inner constraint the vertical
// ScrollArea reports the text's narrow natural width to Pad; settling
// then offers that width back to the editor, where a trailing space
// wraps and doubles its height. The next parent pass restores the
// wide one-line answer, so the two layouts have no fixed point.
.width(rest(1))
// `scrollable_to_end`: what is being typed is at the end, so a
// message longer than the six lines shown holds that end.
.scrollable(Axis::Y, Pin::End)