fix: tx items height

This commit is contained in:
ardocrat 2024-06-04 23:20:26 +03:00
parent 2a0b4903cd
commit bc29a29b83

View file

@ -316,7 +316,8 @@ impl WalletTransactions {
};
ui.painter().rect(bg_rect, rounding, color, View::item_stroke());
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Center), |ui| {
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Max), |ui| {
ui.horizontal_centered(|ui| {
// Draw button to show transaction info.
if can_show_info && tx.from_node && tx.data.tx_slate_id.is_some() {
rounding.nw = 0.0;
@ -391,9 +392,9 @@ impl WalletTransactions {
}
});
}
});
let layout_size = ui.available_size();
ui.allocate_ui_with_layout(layout_size, Layout::left_to_right(Align::Center), |ui| {
ui.with_layout(Layout::left_to_right(Align::Min), |ui| {
ui.add_space(6.0);
ui.vertical(|ui| {
ui.add_space(3.0);