diff options
| -rw-r--r-- | src/dialog.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dialog.rs b/src/dialog.rs index 840800f..73d7282 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -1,9 +1,10 @@ //! Dialogs can be used to provide users with //! important information and make them act on it. use iced_widget::{ - Container, Row, Theme, column, container, mouse_area, opaque, stack, text, + Container, Row, Theme, column, container, mouse_area, opaque, + space::vertical, + stack, text, text::{Fragment, IntoFragment}, - vertical_space, }; use crate::core::{self, Color, Element, Length, Padding, Pixels, alignment}; @@ -371,7 +372,7 @@ where text } }), - has_title.then_some(vertical_space().height(12)), + has_title.then_some(vertical().height(12)), self.content ]) .padding(self.padding_inner); @@ -410,7 +411,7 @@ where let content = Container::new(column![ contents, - has_buttons.then_some(vertical_space()), + has_buttons.then_some(vertical()), buttons, ]) .width(self.width) |
