From 7b506adb0afc2c0a97583165bf125bbb5a993a49 Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Mon, 25 Nov 2024 18:24:11 +0100 Subject: [PATCH] refactor: change height boundry --- src/cmd/tui/tui_groups.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/tui/tui_groups.go b/src/cmd/tui/tui_groups.go index da5a8c0..f94a317 100644 --- a/src/cmd/tui/tui_groups.go +++ b/src/cmd/tui/tui_groups.go @@ -63,7 +63,9 @@ func newModel() mainModel { } } - if h > 20 { + // 25 is a magic number in terms of height but is roughly based on the element height + // of the group squares + if h > 25 { lines = 2 } else { lines = 1