Skip to content

Commit 35ffd5d

Browse files
rogeralsingclaude
andcommitted
Add minimum height to live panel
Pad running section to 5 lines minimum to prevent panel from shrinking when fewer tests are running. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 5354f54 commit 35ffd5d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Asynkron.TestRunner/LiveDisplay.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ private IRenderable CreateRunningSection()
166166
{
167167
var lines = new List<IRenderable>();
168168
var textWidth = ContentWidth - 4; // Leave room for status icon and spacing
169+
const int minLines = 5; // Minimum lines to prevent panel shrinking
169170

170171
if (_lastCompleted != null && _lastStatus != null)
171172
{
@@ -190,6 +191,12 @@ private IRenderable CreateRunningSection()
190191
lines.Add(new Markup("[dim]Waiting for tests...[/]"));
191192
}
192193

194+
// Pad to minimum height to prevent flickering
195+
while (lines.Count < minLines)
196+
{
197+
lines.Add(new Text(""));
198+
}
199+
193200
return new Rows(lines);
194201
}
195202

0 commit comments

Comments
 (0)