From 3d570a215ebf511d2139eb84124ecda001978102 Mon Sep 17 00:00:00 2001 From: guyfedwards Date: Thu, 18 Apr 2024 16:28:58 +0100 Subject: [PATCH] chore: add nom gitignore, padding on app moves padding to the app instead of title, stops the jumping around when changing modes e.g. showing the filter. --- .gitignore | 1 + internal/commands/tui.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ee50040..e21fd8e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ dist/ .LSOverride ._* github_token +nom diff --git a/internal/commands/tui.go b/internal/commands/tui.go index 6ac5d7b..f73056a 100644 --- a/internal/commands/tui.go +++ b/internal/commands/tui.go @@ -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"))