fix: wallet list bottom padding
This commit is contained in:
parent
f86988eab6
commit
8e6a91470f
2 changed files with 34 additions and 36 deletions
|
@ -640,7 +640,7 @@ impl View {
|
||||||
ui.set_opacity(0.9);
|
ui.set_opacity(0.9);
|
||||||
egui::Image::new(logo).fit_to_exact_size(egui::vec2(182.0, 182.0)).ui(ui);
|
egui::Image::new(logo).fit_to_exact_size(egui::vec2(182.0, 182.0)).ui(ui);
|
||||||
});
|
});
|
||||||
ui.add_space(-12.0);
|
ui.add_space(-11.0);
|
||||||
ui.label(RichText::new("GRIM")
|
ui.label(RichText::new("GRIM")
|
||||||
.size(24.0)
|
.size(24.0)
|
||||||
.color(Colors::white_or_black(true))
|
.color(Colors::white_or_black(true))
|
||||||
|
|
|
@ -205,8 +205,8 @@ impl WalletsContent {
|
||||||
inner_margin: Margin {
|
inner_margin: Margin {
|
||||||
left: View::far_left_inset_margin(ui) + 4.0,
|
left: View::far_left_inset_margin(ui) + 4.0,
|
||||||
right: View::far_right_inset_margin(ui) + 4.0,
|
right: View::far_right_inset_margin(ui) + 4.0,
|
||||||
top: 4.0,
|
top: 3.0,
|
||||||
bottom: View::get_bottom_inset() + 4.0,
|
bottom: 4.0,
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
|
@ -325,7 +325,6 @@ impl WalletsContent {
|
||||||
fn wallet_list_ui(&mut self,
|
fn wallet_list_ui(&mut self,
|
||||||
ui: &mut egui::Ui,
|
ui: &mut egui::Ui,
|
||||||
cb: &dyn PlatformCallbacks) {
|
cb: &dyn PlatformCallbacks) {
|
||||||
ui.scope(|ui| {
|
|
||||||
ScrollArea::vertical()
|
ScrollArea::vertical()
|
||||||
.id_source("wallet_list")
|
.id_source("wallet_list")
|
||||||
.scroll_bar_visibility(ScrollBarVisibility::AlwaysHidden)
|
.scroll_bar_visibility(ScrollBarVisibility::AlwaysHidden)
|
||||||
|
@ -362,7 +361,6 @@ impl WalletsContent {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Draw wallet list item.
|
/// Draw wallet list item.
|
||||||
|
|
Loading…
Reference in a new issue