From ce4eef64cdde5f3e5809c963a1d84c933d27e7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 22 Feb 2024 09:24:13 +0100 Subject: [PATCH] Enable layout debugger for Wasm builds in `tour` example --- examples/tour/src/main.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 588abbe88a..1e2f1ef8d8 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -643,17 +643,10 @@ impl<'a> Step { "Give it a shot! Check the following checkbox to be able to \ see element boundaries.", ) - .push(if cfg!(target_arch = "wasm32") { - Element::new( - text("Not available on web yet!") - .style(Color::from([0.7, 0.7, 0.7])) - .horizontal_alignment(alignment::Horizontal::Center), - ) - } else { + .push( checkbox("Explain layout", debug) - .on_toggle(StepMessage::DebugToggled) - .into() - }) + .on_toggle(StepMessage::DebugToggled), + ) .push("Feel free to go back and take a look.") }