fix: dialog body overflows

This commit is contained in:
Eduardo Flores 2025-10-20 12:00:32 -07:00 committed by Jeremy Soller
parent 529eeebaeb
commit f2e965c76c

View file

@ -125,7 +125,9 @@ impl<'a, Message: Clone + 'static> From<Dialog<'a, Message>> for Element<'a, Mes
content_col = content_col
.push(widget::vertical_space().height(Length::Fixed(space_xxs.into())));
}
content_col = content_col.push(widget::text::body(body));
content_col = content_col.push(
widget::container(widget::scrollable(widget::text::body(body))).max_height(300.),
);
should_space = true;
}
for control in dialog.controls {