mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
fix(core): spaces in Shamir info texts
This commit is contained in:
parent
c4bf522b31
commit
767e7b8e8d
@ -37,7 +37,7 @@ class InfoConfirm(ui.Layout):
|
|||||||
style: InfoConfirmStyleType = DEFAULT_STYLE,
|
style: InfoConfirmStyleType = DEFAULT_STYLE,
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.text = text.split()
|
self.text = [text]
|
||||||
self.style = style
|
self.style = style
|
||||||
panel_area = ui.grid(0, n_x=1, n_y=1)
|
panel_area = ui.grid(0, n_x=1, n_y=1)
|
||||||
self.panel_area = panel_area
|
self.panel_area = panel_area
|
||||||
@ -66,7 +66,7 @@ class InfoConfirm(ui.Layout):
|
|||||||
max_lines=6,
|
max_lines=6,
|
||||||
offset_y=y + TEXT_LINE_HEIGHT,
|
offset_y=y + TEXT_LINE_HEIGHT,
|
||||||
offset_x=x + TEXT_MARGIN_LEFT - ui.VIEWX,
|
offset_x=x + TEXT_MARGIN_LEFT - ui.VIEWX,
|
||||||
line_width=w,
|
line_width=w - TEXT_MARGIN_LEFT,
|
||||||
fg=fg_color,
|
fg=fg_color,
|
||||||
bg=bg_color,
|
bg=bg_color,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user