fix: scroll margain

This commit is contained in:
Kirn Kim
2023-04-28 14:08:34 -04:00
committed by Maas Lalani
parent ab1f7134e4
commit a79567aa2c
+6 -4
View File
@@ -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 {