Update to modalkit{,-ratatui}@0.0.19 (#273)

This commit is contained in:
Ulyssa
2024-04-23 23:30:01 -07:00
committed by GitHub
parent 3971801aa3
commit 46f6d37f76
7 changed files with 316 additions and 89 deletions

View File

@@ -128,9 +128,7 @@ pub fn space_text(width: usize, style: Style) -> Text<'static> {
pub fn join_cell_text<'a>(texts: Vec<(Text<'a>, usize)>, join: Span<'a>, style: Style) -> Text<'a> {
let height = texts.iter().map(|t| t.0.height()).max().unwrap_or(0);
let mut text = Text {
lines: vec![Line::from(vec![join.clone()]); height],
};
let mut text = Text::from(vec![Line::from(vec![join.clone()]); height]);
for (mut t, w) in texts.into_iter() {
for i in 0..height {