Hide `Close` button on web

pull/8/head
Benedikt Terhechte 2 years ago
parent e94e42e5e0
commit fa310340b4

@ -48,9 +48,12 @@ impl<'a> Widget for NavigationBar<'a> {
ui.add_space(15.0);
let close_text = "Close";
if ui.add(navigation_button(close_text)).clicked() {
self.state.action_close = true;
#[cfg(not(target_arch = "wasm32"))]
{
let close_text = "Close";
if ui.add(navigation_button(close_text)).clicked() {
self.state.action_close = true;
}
}
let filter_text = "\u{1f50D} Filters";

Loading…
Cancel
Save