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:
parent
ec4fbecc1d
commit
6bf11ab29f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user