Skip to content

Commit

Permalink
chore: add nom gitignore, padding on app
Browse files Browse the repository at this point in the history
moves padding to the app instead of title, stops the jumping around
when changing modes e.g. showing the filter.
  • Loading branch information
guyfedwards committed Apr 18, 2024
1 parent 484a706 commit 3d570a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist/
.LSOverride
._*
github_token
nom
4 changes: 2 additions & 2 deletions internal/commands/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
)

var (
appStyle = lipgloss.NewStyle().Padding(0).Margin(0)
titleStyle = list.DefaultStyles().Title.Margin(1, 0, 0, 0).Width(5)
appStyle = lipgloss.NewStyle().Padding(1, 0, 0, 0).Margin(0)
titleStyle = list.DefaultStyles().Title.Margin(0).Width(5)
itemStyle = lipgloss.NewStyle().PaddingLeft(4)
selectedItemStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("170"))
readStyle = lipgloss.NewStyle().PaddingLeft(4).Foreground(lipgloss.Color("240"))
Expand Down

0 comments on commit 3d570a2

Please sign in to comment.