From d3d6f3efb33f601ff3fca4a6496cfeef052501ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n?= Date: Thu, 3 Jun 2021 20:35:26 +0700 Subject: [PATCH] Add some horizontal padding to `toggler` section in `tour` example --- examples/tour/src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index de935444..1215f83d 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -565,11 +565,14 @@ impl<'a> Step { .push(Text::new( "A toggler is mostly used to enable or disable something.", )) - .push(Toggler::new( - can_continue, - String::from("Toggle me to continue..."), - StepMessage::TogglerChanged, - )) + .push( + Container::new(Toggler::new( + can_continue, + String::from("Toggle me to continue..."), + StepMessage::TogglerChanged, + )) + .padding([0, 40]), + ) } fn image(