mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
images are centered
This commit is contained in:
parent
188b55ad25
commit
3b0e56971c
@ -243,10 +243,10 @@ fn build_image_paragraph(
|
||||
))
|
||||
})
|
||||
.collect::<Vec<Line>>();
|
||||
let text = Text::from(lines);
|
||||
Paragraph::new(text)
|
||||
let text_image = Text::from(lines);
|
||||
Paragraph::new(text_image)
|
||||
.block(preview_block)
|
||||
.wrap(Wrap { trim: false })
|
||||
.alignment(Alignment::Center)
|
||||
}
|
||||
|
||||
pub fn build_meta_preview_paragraph<'a>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user