summaryrefslogtreecommitdiff
path: root/internal/tui/eventstream/render_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-25 09:23:19 +0200
committerPaul Buetow <paul@buetow.org>2026-02-25 09:23:19 +0200
commit1279ffb8f2efba54ff005cce91ba65c149cb1ee6 (patch)
tree102483e8d836501b3b935e0674d6608fbe9f4f1f /internal/tui/eventstream/render_test.go
parentb3625cc67c81b4c1bd654a9fcdaf624d76306b07 (diff)
Improve TUI layout and increase sparkline height
Diffstat (limited to 'internal/tui/eventstream/render_test.go')
-rw-r--r--internal/tui/eventstream/render_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/tui/eventstream/render_test.go b/internal/tui/eventstream/render_test.go
index 89c2029..c7f32cd 100644
--- a/internal/tui/eventstream/render_test.go
+++ b/internal/tui/eventstream/render_test.go
@@ -93,3 +93,10 @@ func TestRenderEventRowIsSingleLineWithControlCharsAndLongValues(t *testing.T) {
t.Fatalf("expected truncation ellipsis in narrow row, got %q", row)
}
}
+
+func TestComputeColumnLayoutGivesFileMoreSpace(t *testing.T) {
+ cols := computeColumnLayout(120)
+ if cols.file < 55 {
+ t.Fatalf("expected file column to get most width, got %d", cols.file)
+ }
+}