Merge add padding to relay view
commit fddddba618
Author: jglad <jakub.gladysz1@gmail.com>
Date: Tue Mar 18 09:29:22 2025 +0100
#761 add padding to relay view
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user