1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-23 10:39:03 +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::{
swipe_detect::SwipeSettings,
text::{
paragraphs::{Paragraph, ParagraphSource, ParagraphVecLong, VecExt},
paragraphs::{Paragraph, ParagraphSource, ParagraphVecShort, VecExt},
TextStyle,
},
Component,
@ -330,7 +330,7 @@ pub struct ShowInfoParams {
chunkify: bool,
swipe_up: bool,
swipe_down: bool,
items: Vec<(TString<'static>, TString<'static>), 4>,
items: Vec<(TString<'static>, TString<'static>), 3>,
}
impl ShowInfoParams {
@ -412,7 +412,7 @@ impl ShowInfoParams {
pub fn into_layout(
self,
) -> Result<impl Component<Msg = FlowMsg> + Swipable + MaybeTrace, Error> {
let mut paragraphs = ParagraphVecLong::new();
let mut paragraphs = ParagraphVecShort::new();
let mut first: bool = true;
for item in self.items {
// FIXME: padding: