From 767e7b8e8de3cd677211406d52c68a3da10915b7 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 3 Jun 2021 12:23:22 +0200 Subject: [PATCH] fix(core): spaces in Shamir info texts --- core/src/trezor/ui/components/tt/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/trezor/ui/components/tt/info.py b/core/src/trezor/ui/components/tt/info.py index 5977af135..0ed3ef119 100644 --- a/core/src/trezor/ui/components/tt/info.py +++ b/core/src/trezor/ui/components/tt/info.py @@ -37,7 +37,7 @@ class InfoConfirm(ui.Layout): style: InfoConfirmStyleType = DEFAULT_STYLE, ) -> None: super().__init__() - self.text = text.split() + self.text = [text] self.style = style panel_area = ui.grid(0, n_x=1, n_y=1) self.panel_area = panel_area @@ -66,7 +66,7 @@ class InfoConfirm(ui.Layout): max_lines=6, offset_y=y + TEXT_LINE_HEIGHT, offset_x=x + TEXT_MARGIN_LEFT - ui.VIEWX, - line_width=w, + line_width=w - TEXT_MARGIN_LEFT, fg=fg_color, bg=bg_color, )