From c04cd19c6c332c8e194787df78fea9988680f046 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 19 Jun 2023 16:56:25 +0200 Subject: [PATCH] chore(core/rust): decrease margin space between key and value paragraphs in confirm_properties [no changelog] --- core/embed/rust/src/ui/model_tr/layout.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/model_tr/layout.rs b/core/embed/rust/src/ui/model_tr/layout.rs index 3006ade01a..e5f61a4e43 100644 --- a/core/embed/rust/src/ui/model_tr/layout.rs +++ b/core/embed/rust/src/ui/model_tr/layout.rs @@ -368,7 +368,13 @@ extern "C" fn new_confirm_properties(n_args: usize, args: *const Obj, kwargs: *m if let Some(key) = key { if value.is_some() { - paragraphs.add(Paragraph::new(&theme::TEXT_BOLD, key).no_break()); + // Decreasing the margin between key and value (default is 5 px, we use 2 px) + // (this enables 4 lines - 2 key:value pairs - on the same screen) + paragraphs.add( + Paragraph::new(&theme::TEXT_BOLD, key) + .no_break() + .with_bottom_padding(2), + ); } else { paragraphs.add(Paragraph::new(&theme::TEXT_BOLD, key)); }