mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-09 15:00:58 +00:00
chore(core/rust/ui): workaround for "re-enter wipe code"
[no changelog]
This commit is contained in:
parent
4200539546
commit
e80712f4d9
@ -163,7 +163,8 @@ where
|
|||||||
.inset(borders_no_top)
|
.inset(borders_no_top)
|
||||||
.split_top(theme::borders().top + HEADER_HEIGHT + HEADER_PADDING_BOTTOM);
|
.split_top(theme::borders().top + HEADER_HEIGHT + HEADER_PADDING_BOTTOM);
|
||||||
let prompt = header.inset(HEADER_PADDING);
|
let prompt = header.inset(HEADER_PADDING);
|
||||||
let major_area = prompt.translate(Self::MAJOR_OFF);
|
// the inset -3 is a workaround for long text in "re-enter wipe code"
|
||||||
|
let major_area = prompt.translate(Self::MAJOR_OFF).inset(Insets::right(-3));
|
||||||
let minor_area = prompt.translate(Self::MINOR_OFF);
|
let minor_area = prompt.translate(Self::MINOR_OFF);
|
||||||
|
|
||||||
// Control buttons.
|
// Control buttons.
|
||||||
|
Loading…
Reference in New Issue
Block a user