1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

chore(core/rust/ui): workaround for "re-enter wipe code"

[no changelog]
This commit is contained in:
matejcik 2022-11-23 15:35:21 +01:00 committed by matejcik
parent 4200539546
commit e80712f4d9

View File

@ -163,7 +163,8 @@ where
.inset(borders_no_top)
.split_top(theme::borders().top + HEADER_HEIGHT + HEADER_PADDING_BOTTOM);
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);
// Control buttons.