fix: too much padding for small frames (#3616)
This commit is contained in:
1 parent
23d9178154
commit
d42b1d5146
1 file changed
+1
-4
@@ -1003,10 +1003,7 @@ impl Output {
|
|||||||
|
|
||||||
// Create the ansi -> raw string line with a width of either the viewport width or the max width
|
// Create the ansi -> raw string line with a width of either the viewport width or the max width
|
||||||
let line_length = line.styled_graphemes(Style::default()).count();
|
let line_length = line.styled_graphemes(Style::default()).count();
|
||||||
lines.push(
|
lines.push(AnsiStringLine::new(line_length as _).render(&line));
|
||||||
AnsiStringLine::new(line_length.max(VIEWPORT_MAX_WIDTH.into()) as _)
|
|
||||||
.render(&line),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user