From aa58e0b7e82912d6ed0aaeb28a44d093330ce323 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Tue, 11 Mar 2025 22:20:06 +0100 Subject: [PATCH] fixup! fix(core): fix Caesar PinEntry to use Title --- .../rust/src/ui/layout_caesar/component/input_methods/pin.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/ui/layout_caesar/component/input_methods/pin.rs b/core/embed/rust/src/ui/layout_caesar/component/input_methods/pin.rs index b566b8fc5c..1878a7711e 100644 --- a/core/embed/rust/src/ui/layout_caesar/component/input_methods/pin.rs +++ b/core/embed/rust/src/ui/layout_caesar/component/input_methods/pin.rs @@ -172,7 +172,7 @@ impl<'a> PinEntry<'a> { choice_page: ChoicePage::new(ChoiceFactoryPIN) .with_initial_page_counter(get_random_digit_position()) .with_controls(ChoiceControls::Carousel), - header_line: Child::new(Title::new(header_line_content)), + header_line: Child::new(Title::new(header_line_content).with_centered()), pin_line: Child::new(pin_line), subprompt, prompt, @@ -253,7 +253,8 @@ impl Component for PinEntry<'_> { type Msg = CancelConfirmMsg; fn place(&mut self, bounds: Rect) -> Rect { - let header_height = Title::height(); + // same adjustment of height as in ChangingTextLine::needed_height() + let header_height = Title::height() + 2; let (header_area, rest) = bounds.split_top(header_height); let pin_height = self.pin_line.inner().needed_height(); let (pin_area, choice_area) = rest.split_top(pin_height);