▍ humdrum codex / glint v1.0.2

tune: widen writing-canvas column (ratio 0.65→0.75, cap 100→120)

fc11c13908b0b870b28fc9fb8366f2f7aa196ceb
humdrum <me@humdrum.me> · 2026-06-28 13:53

parent 9ffef83d

tune: widen writing-canvas column (ratio 0.65→0.75, cap 100→120)

Margins read too wide; the 100-col cap dominated on wide terminals. Bump
the column ratio and cap so the text column is wider and the side margins
tighter at every size. Update the two tests that pin the contentWidth math.

2 files changed

internal/app/app.go +2 −2
@@ -40,8 +40,8 @@ )
 
 // Canvas layout: a centered, percentage-width text column with a little top air.
 const (
-	canvasRatio  = 0.65
-	canvasMax    = 100
+	canvasRatio  = 0.75
+	canvasMax    = 120
 	canvasMin    = 24
 	canvasTopPad = 1
 )
internal/app/app_test.go +6 −6
@@ -86,8 +86,8 @@
 func TestWindowSizePropagates(t *testing.T) {
 	a := newApp()
 	a.Update(tea.WindowSizeMsg{Width: 100, Height: 30})
-	if a.editor.Width != 65 { // contentWidth = round(100 * 0.65) = 65
-		t.Errorf("editor width = %d, want 65", a.editor.Width)
+	if a.editor.Width != 75 { // contentWidth = round(100 * 0.75) = 75
+		t.Errorf("editor width = %d, want 75", a.editor.Width)
 	}
 	if a.editor.Height != 28 { // minus status bar and top pad
 		t.Errorf("editor height = %d, want 28", a.editor.Height)
@@ -343,11 +343,11 @@
 func TestCanvasContentWidthCapsAndCenters(t *testing.T) {
 	a := newApp()
 	a.Update(tea.WindowSizeMsg{Width: 200, Height: 40})
-	if cw := a.contentWidth(); cw != 100 {
-		t.Errorf("contentWidth = %d, want 100 (capped)", cw)
+	if cw := a.contentWidth(); cw != 120 {
+		t.Errorf("contentWidth = %d, want 120 (capped)", cw)
 	}
-	if lm := a.leftMargin(); lm != (200-100)/2 {
-		t.Errorf("leftMargin = %d, want %d", lm, (200-100)/2)
+	if lm := a.leftMargin(); lm != (200-120)/2 {
+		t.Errorf("leftMargin = %d, want %d", lm, (200-120)/2)
 	}
 }