Skip to content

Commit 2998aad

Browse files
committed
style: reduce TUI minimum width from 91 to 76 columns
Shrink form width from 55 to 45 chars (content fits comfortably) and preview minimum from 30 to 25 chars. Both panels now show at 76+ columns (was 91). Preview hides below 76 columns.
1 parent 2b7f135 commit 2998aad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/policywizard/model.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/kosli-dev/cli/internal/policy"
1111
)
1212

13-
const formWidth = 55
13+
const formWidth = 45
1414

1515
// fetchDoneMsg is sent when the async API fetch completes.
1616
type fetchDoneMsg struct {
@@ -151,7 +151,7 @@ func (m Model) View() string {
151151
fw := formWidth
152152
available := m.width - s.base.GetHorizontalFrameSize()
153153
pw := available - fw - 2
154-
if pw < 30 {
154+
if pw < 25 {
155155
pw = 0
156156
}
157157

0 commit comments

Comments
 (0)