Enable layout debugger for Wasm builds in tour example
This commit is contained in:
parent
6c00e615b9
commit
ce4eef64cd
1 changed files with 3 additions and 10 deletions
|
|
@ -643,17 +643,10 @@ impl<'a> Step {
|
||||||
"Give it a shot! Check the following checkbox to be able to \
|
"Give it a shot! Check the following checkbox to be able to \
|
||||||
see element boundaries.",
|
see element boundaries.",
|
||||||
)
|
)
|
||||||
.push(if cfg!(target_arch = "wasm32") {
|
.push(
|
||||||
Element::new(
|
|
||||||
text("Not available on web yet!")
|
|
||||||
.style(Color::from([0.7, 0.7, 0.7]))
|
|
||||||
.horizontal_alignment(alignment::Horizontal::Center),
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
checkbox("Explain layout", debug)
|
checkbox("Explain layout", debug)
|
||||||
.on_toggle(StepMessage::DebugToggled)
|
.on_toggle(StepMessage::DebugToggled),
|
||||||
.into()
|
)
|
||||||
})
|
|
||||||
.push("Feel free to go back and take a look.")
|
.push("Feel free to go back and take a look.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue