From e80712f4d97bf38bc8dd3b3f4b777e880d95f43c Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 23 Nov 2022 15:35:21 +0100 Subject: [PATCH] chore(core/rust/ui): workaround for "re-enter wipe code" [no changelog] --- core/embed/rust/src/ui/model_tt/component/keyboard/pin.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/model_tt/component/keyboard/pin.rs b/core/embed/rust/src/ui/model_tt/component/keyboard/pin.rs index 0407e11be..ca9b7a52b 100644 --- a/core/embed/rust/src/ui/model_tt/component/keyboard/pin.rs +++ b/core/embed/rust/src/ui/model_tt/component/keyboard/pin.rs @@ -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.