Browse Source

fix: too much padding for small frames (#3616)

Jonathan Kelley 5 tháng trước cách đây
mục cha
commit
d42b1d5146
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      packages/cli/src/serve/output.rs

+ 1 - 4
packages/cli/src/serve/output.rs

@@ -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));
             }
         }