summaryrefslogtreecommitdiff
path: root/pkg/ui/views/views.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-08 23:39:45 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-08 23:39:45 +0200
commitd8fa18ef21c10040cd2b06f39df331c7407f23fe (patch)
tree9e4b31bbe8f26e955eec4c93c9543efeebc25658 /pkg/ui/views/views.go
parent03e9372923dfe12c253316e90b71b1ce9eaf6ba6 (diff)
Bigger form width
Diffstat (limited to 'pkg/ui/views/views.go')
-rw-r--r--pkg/ui/views/views.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/ui/views/views.go b/pkg/ui/views/views.go
index fa70035..9487aef 100644
--- a/pkg/ui/views/views.go
+++ b/pkg/ui/views/views.go
@@ -48,11 +48,11 @@ func ClearScreen() {
}
func getFormWidth(width int) int {
- formWidth := width * 2 / 3
- if formWidth > 80 {
- formWidth = 80 // Cap at 80 chars for readability
+ formWidth := width * 2 / 2
+ if formWidth > 160 {
+ formWidth = 160
} else if formWidth < 40 {
- formWidth = width - 4 // For small terminals
+ formWidth = width - 4
}
return formWidth