From a41e3023145185e33b480c121cf8a6992e7d5307 Mon Sep 17 00:00:00 2001 From: isabel Date: Wed, 3 Jul 2024 13:50:09 +0100 Subject: [PATCH] chore: misc cleanup --- cmd/keys.go | 2 -- cmd/load.go | 2 +- lib/helpers.go | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/keys.go b/cmd/keys.go index 4d2bc46..a03174f 100644 --- a/cmd/keys.go +++ b/cmd/keys.go @@ -180,8 +180,6 @@ func (m Model) handleKeys(msg tea.KeyMsg) (Model, tea.Cmd) { m.loadContent(m.table.Cursor()) m.table.Focus() m.filter.Blur() - - return m, nil } } diff --git a/cmd/load.go b/cmd/load.go index 1aba72f..d1adbce 100644 --- a/cmd/load.go +++ b/cmd/load.go @@ -59,7 +59,7 @@ func (m *Model) loadContent(id int) { columns := []table.Column{ {Title: "", Width: 2}, {Title: "Date", Width: 15}, - {Title: "Title", Width: m.table.Width() - 25}, + {Title: "Title", Width: m.table.Width() - 17}, } rows := []table.Row{} diff --git a/lib/helpers.go b/lib/helpers.go index a006bdf..6eaa068 100644 --- a/lib/helpers.go +++ b/lib/helpers.go @@ -106,7 +106,7 @@ func Max(a, b int) int { func ReadSymbol(read bool) string { if read { - return " " + return "" } return "•" }