Parcourir la source

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

Jonathan Kelley il y a 5 mois
Parent
commit
d42b1d5146
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  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));
             }
         }