mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix: scroll margain
This commit is contained in:
@@ -56,9 +56,11 @@ type errorMsg struct {
|
|||||||
|
|
||||||
type readDirMsg []os.DirEntry
|
type readDirMsg []os.DirEntry
|
||||||
|
|
||||||
const marginBottom = 5
|
const (
|
||||||
const fileSizeWidth = 8
|
marginBottom = 6
|
||||||
const paddingLeft = 2
|
fileSizeWidth = 8
|
||||||
|
paddingLeft = 2
|
||||||
|
)
|
||||||
|
|
||||||
// KeyMap defines key bindings for each user action.
|
// KeyMap defines key bindings for each user action.
|
||||||
type KeyMap struct {
|
type KeyMap struct {
|
||||||
@@ -380,7 +382,7 @@ func (m Model) View() string {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
var style = m.Styles.File
|
style := m.Styles.File
|
||||||
if f.IsDir() {
|
if f.IsDir() {
|
||||||
style = m.Styles.Directory
|
style = m.Styles.Directory
|
||||||
} else if isSymlink {
|
} else if isSymlink {
|
||||||
|
|||||||
Reference in New Issue
Block a user