1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

chore(core/rust): decrease margin space between key and value paragraphs in confirm_properties

[no changelog]
This commit is contained in:
grdddj 2023-06-19 16:56:25 +02:00 committed by Jiří Musil
parent b5226b55c8
commit c04cd19c6c

View File

@ -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));
}