Skip to content

Commit

Permalink
fix: too much padding for small frames (#3616)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp authored Jan 21, 2025
1 parent 23d9178 commit d42b1d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/cli/src/serve/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,10 +1003,7 @@ impl Output {

// 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();
lines.push(
AnsiStringLine::new(line_length.max(VIEWPORT_MAX_WIDTH.into()) as _)
.render(&line),
);
lines.push(AnsiStringLine::new(line_length as _).render(&line));
}
}

Expand Down

0 comments on commit d42b1d5

Please sign in to comment.