From 9c5a3b7ea39e80885507f4dbe7ad7cf64993623a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Wi=C4=99cek?= Date: Thu, 23 Nov 2023 10:43:16 +0100 Subject: [PATCH 1/2] fix(help): add guard for too width divider --- ui/widgets/help/widget.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/widgets/help/widget.go b/ui/widgets/help/widget.go index 9d60064..6373c29 100644 --- a/ui/widgets/help/widget.go +++ b/ui/widgets/help/widget.go @@ -89,6 +89,10 @@ func (m Model) View(keyMap help.KeyMap) string { physicalWidth, _, _ := term.GetSize(int(os.Stdout.Fd())) dividerWidth := physicalWidth - lipgloss.Width(helpView) - lipgloss.Width(status) + + if dividerWidth < 0 { + dividerWidth = 0 + } divider := strings.Repeat(" ", dividerWidth) return lipgloss.JoinHorizontal( From e8d7b3522cbfb2626bf15416117f139b7ad6874a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Wi=C4=99cek?= Date: Thu, 23 Nov 2023 10:43:38 +0100 Subject: [PATCH 2/2] chore: remove 2 kb from tasktable short help --- ui/widgets/tasks-table/taskstable.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/widgets/tasks-table/taskstable.go b/ui/widgets/tasks-table/taskstable.go index e0b95e9..fa82fa4 100644 --- a/ui/widgets/tasks-table/taskstable.go +++ b/ui/widgets/tasks-table/taskstable.go @@ -82,8 +82,6 @@ func (m Model) KeyMap() help.KeyMap { common.KeyBindingWithHelp(km.RowSelectToggle, "select"), common.KeyBindingWithHelp(km.PageDown, "next page"), common.KeyBindingWithHelp(km.PageUp, "previous page"), - common.KeyBindingWithHelp(km.PageFirst, "first page"), - common.KeyBindingWithHelp(km.PageLast, "last page"), switchFocusToListView, } },