fix: dialog body overflows

This commit is contained in:
Eduardo Flores 2025-10-20 12:00:32 -07:00
parent 944c6761f7
commit 8100867247
No known key found for this signature in database
GPG key ID: 355A759098F759B5

View file

@ -93,7 +93,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 {