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:
parent
b5226b55c8
commit
c04cd19c6c
@ -368,7 +368,13 @@ extern "C" fn new_confirm_properties(n_args: usize, args: *const Obj, kwargs: *m
|
|||||||
|
|
||||||
if let Some(key) = key {
|
if let Some(key) = key {
|
||||||
if value.is_some() {
|
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 {
|
} else {
|
||||||
paragraphs.add(Paragraph::new(&theme::TEXT_BOLD, key));
|
paragraphs.add(Paragraph::new(&theme::TEXT_BOLD, key));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user