#761 add padding to relay view

This commit is contained in:
jglad
2025-03-18 09:29:22 +01:00
parent fdd202741a
commit fddddba618

View File

@@ -21,12 +21,16 @@ pub struct RelayView<'a> {
impl View for RelayView<'_> {
fn ui(&mut self, ui: &mut egui::Ui) {
Frame::new()
.inner_margin(Margin::symmetric(10, 0))
.show(ui, |ui| {
ui.add_space(24.0);
ui.horizontal(|ui| {
ui.with_layout(Layout::left_to_right(Align::Center), |ui| {
ui.label(
RichText::new("Relays").text_style(NotedeckTextStyle::Heading2.text_style()),
RichText::new("Relays")
.text_style(NotedeckTextStyle::Heading2.text_style()),
);
});
});
@@ -47,6 +51,7 @@ impl View for RelayView<'_> {
.add_advertised_relay(&relay_to_add, self.manager.pool);
}
});
});
}
}