1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-20 06:58:45 +00:00

chore(core): use smaller vectors for ShowInfoParams

[no changelog]
This commit is contained in:
Roman Zeyde 2025-03-11 10:20:15 +02:00 committed by Roman Zeyde
parent ec4fbecc1d
commit 6bf11ab29f

View File

@ -8,7 +8,7 @@ use crate::{
component::{ component::{
swipe_detect::SwipeSettings, swipe_detect::SwipeSettings,
text::{ text::{
paragraphs::{Paragraph, ParagraphSource, ParagraphVecLong, VecExt}, paragraphs::{Paragraph, ParagraphSource, ParagraphVecShort, VecExt},
TextStyle, TextStyle,
}, },
Component, Component,
@ -330,7 +330,7 @@ pub struct ShowInfoParams {
chunkify: bool, chunkify: bool,
swipe_up: bool, swipe_up: bool,
swipe_down: bool, swipe_down: bool,
items: Vec<(TString<'static>, TString<'static>), 4>, items: Vec<(TString<'static>, TString<'static>), 3>,
} }
impl ShowInfoParams { impl ShowInfoParams {
@ -412,7 +412,7 @@ impl ShowInfoParams {
pub fn into_layout( pub fn into_layout(
self, self,
) -> Result<impl Component<Msg = FlowMsg> + Swipable + MaybeTrace, Error> { ) -> Result<impl Component<Msg = FlowMsg> + Swipable + MaybeTrace, Error> {
let mut paragraphs = ParagraphVecLong::new(); let mut paragraphs = ParagraphVecShort::new();
let mut first: bool = true; let mut first: bool = true;
for item in self.items { for item in self.items {
// FIXME: padding: // FIXME: padding: