Skip to content

Commit

Permalink
ui/relays/active.rs: Right-align "Coverage Report" button
Browse files Browse the repository at this point in the history
  • Loading branch information
Bu5hm4nn committed Sep 6, 2023
1 parent 9fb1a5e commit 1c5e2a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ui/relays/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
ui.with_layout(egui::Layout::left_to_right(egui::Align::Center), |ui| {
ui.heading(Page::RelaysActivityMonitor.name());
ui.set_enabled(!is_editing);
ui.add_space(10.0);
if ui
.button(RichText::new(Page::RelaysCoverage.name()))
.on_hover_cursor(egui::CursorIcon::PointingHand)
.clicked()
{
app.set_page(crate::ui::Page::RelaysCoverage);
}
});
ui.with_layout(egui::Layout::right_to_left(egui::Align::Min), |ui| {
ui.add_space(20.0);
Expand All @@ -34,6 +26,14 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
super::relay_sort_combo(app, ui);
ui.add_space(20.0);
widgets::search_filter_field(ui, &mut app.relays.search, 200.0);
ui.add_space(200.0); // search_field somehow doesn't "take up" space
if ui
.button(RichText::new(Page::RelaysCoverage.name()))
.on_hover_cursor(egui::CursorIcon::PointingHand)
.clicked()
{
app.set_page(crate::ui::Page::RelaysCoverage);
}
});
});
ui.add_space(10.0);
Expand Down

0 comments on commit 1c5e2a7

Please sign in to comment.