ui: fix paddings

This commit is contained in:
ardocrat 2023-07-11 22:05:56 +03:00
parent 9d97d466ff
commit 126574912e
4 changed files with 10 additions and 10 deletions

View file

@ -151,8 +151,10 @@ impl NodeSetup {
self.api_port_setup_ui(ui, cb);
// Show API secret setup.
self.secret_ui(Self::API_SECRET_MODAL, ui, cb);
ui.add_space(12.0);
// Show Foreign API secret setup.
self.secret_ui(Self::FOREIGN_API_SECRET_MODAL, ui, cb);
ui.add_space(6.0);
});
}
@ -339,7 +341,6 @@ impl NodeSetup {
Navigator::show_modal(port_modal);
cb.show_keyboard();
});
ui.add_space(12.0);
}
/// Draw API port [`Modal`] content.
@ -462,7 +463,6 @@ impl NodeSetup {
.size(16.0)
.color(Colors::INACTIVE_TEXT)
);
ui.add_space(6.0);
}
/// Draw FTL [`Modal`] content.

View file

@ -219,7 +219,7 @@ impl P2PSetup {
Navigator::show_modal(port_modal);
cb.show_keyboard();
});
ui.add_space(12.0);
ui.add_space(6.0);
// Show error when stratum server port is unavailable.
if !self.is_port_available {
@ -244,7 +244,7 @@ impl P2PSetup {
let text_edit_resp = egui::TextEdit::singleline(&mut self.port_edit)
.id(Id::from(modal.id))
.font(TextStyle::Heading)
.desired_width(58.0)
.desired_width(64.0)
.cursor_at_end(true)
.ui(ui);
text_edit_resp.request_focus();
@ -742,7 +742,7 @@ impl P2PSetup {
Navigator::show_modal(max_outbound);
cb.show_keyboard();
});
ui.add_space(2.0);
ui.add_space(6.0);
}
/// Draw maximum number of outbound peers [`Modal`] content.

View file

@ -137,7 +137,7 @@ impl PoolSetup {
let text_edit_resp = egui::TextEdit::singleline(&mut self.fee_base_edit)
.id(Id::from(modal.id))
.font(TextStyle::Heading)
.desired_width(76.0)
.desired_width(84.0)
.cursor_at_end(true)
.ui(ui);
text_edit_resp.request_focus();
@ -307,7 +307,7 @@ impl PoolSetup {
let text_edit_resp = egui::TextEdit::singleline(&mut self.pool_size_edit)
.id(Id::from(modal.id))
.font(TextStyle::Heading)
.desired_width(64.0)
.desired_width(72.0)
.cursor_at_end(true)
.ui(ui);
text_edit_resp.request_focus();
@ -392,7 +392,7 @@ impl PoolSetup {
let text_edit_resp = egui::TextEdit::singleline(&mut self.stempool_size_edit)
.id(Id::from(modal.id))
.font(TextStyle::Heading)
.desired_width(64.0)
.desired_width(72.0)
.cursor_at_end(true)
.ui(ui);
text_edit_resp.request_focus();
@ -477,7 +477,7 @@ impl PoolSetup {
let text_edit_resp = egui::TextEdit::singleline(&mut self.max_weight_edit)
.id(Id::from(modal.id))
.font(TextStyle::Heading)
.desired_width(64.0)
.desired_width(72.0)
.cursor_at_end(true)
.ui(ui);
text_edit_resp.request_focus();

View file

@ -358,7 +358,7 @@ impl StratumSetup {
Navigator::show_modal(diff_modal);
cb.show_keyboard();
});
ui.add_space(12.0);
ui.add_space(6.0);
}
/// Draw minimum acceptable share difficulty [`Modal`] content.