diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-09-23 15:59:31 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-09-23 15:59:31 +0200 |
| commit | 66bd5f97b6261469429954dd9ba7d3ad8b5c97fe (patch) | |
| tree | f7f6796e320f351a27f9aa68bbec0118887b7b17 | |
| parent | chore: increase MSRV to match `iced` (diff) | |
| download | iced_dialog-66bd5f97b6261469429954dd9ba7d3ad8b5c97fe.tar.gz | |
chore: necessary updates for iced-rs/iced@611f89f
| -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) |
