From f2e965c76cddf3bac183e35f2c7b91874b5f2628 Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Mon, 20 Oct 2025 12:00:32 -0700 Subject: [PATCH] fix: dialog body overflows --- src/widget/dialog.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widget/dialog.rs b/src/widget/dialog.rs index 50bf4f1e..ecc6ef05 100644 --- a/src/widget/dialog.rs +++ b/src/widget/dialog.rs @@ -125,7 +125,9 @@ impl<'a, Message: Clone + 'static> From> 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 {