Skip to content
Snippets Groups Projects
Commit f73642c9 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

dashboard: fix button trying its best to be vertical

parent 5b2bc2d7
No related branches found
No related tags found
No related merge requests found
Pipeline #97118 passed
......@@ -253,15 +253,17 @@
..Default::default()
})
.add(|tui| {
let add_benchmark_button =
Button::new(RichText::new("Add benchmark").font(
FontId::new(15.0, egui::FontFamily::Proportional),
));
if !has_compatible_data_envs {
tui.disabled().ui_add(add_benchmark_button)
} else {
tui.ui_add(add_benchmark_button)
}
tui.wrap_mode(egui::TextWrapMode::Extend).add(|tui| {
let add_benchmark_button =
Button::new(RichText::new("Add benchmark").font(
FontId::new(15.0, egui::FontFamily::Proportional),
));
if !has_compatible_data_envs {
tui.disabled().ui_add(add_benchmark_button)
} else {
tui.ui_add(add_benchmark_button)
}
})
});
let mut clicked = add_benchmark_button.clicked();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment