From a79567aa2c15613d74f8a6ea09a3d751a103d9a4 Mon Sep 17 00:00:00 2001 From: Kirn Kim Date: Fri, 21 Apr 2023 12:40:20 -0700 Subject: [PATCH] fix: scroll margain --- filepicker/filepicker.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/filepicker/filepicker.go b/filepicker/filepicker.go index 8347e02..34d5aa1 100644 --- a/filepicker/filepicker.go +++ b/filepicker/filepicker.go @@ -56,9 +56,11 @@ type errorMsg struct { type readDirMsg []os.DirEntry -const marginBottom = 5 -const fileSizeWidth = 8 -const paddingLeft = 2 +const ( + marginBottom = 6 + fileSizeWidth = 8 + paddingLeft = 2 +) // KeyMap defines key bindings for each user action. type KeyMap struct { @@ -380,7 +382,7 @@ func (m Model) View() string { continue } - var style = m.Styles.File + style := m.Styles.File if f.IsDir() { style = m.Styles.Directory } else if isSymlink {