Skip to content

Commit

Permalink
Enable layout debugger for Wasm builds in tour example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 22, 2024
1 parent 6c00e61 commit ce4eef6
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions examples/tour/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down

0 comments on commit ce4eef6

Please sign in to comment.