diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..5d53c95c8 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + project: + default: + target: 50% + patch: + default: + target: 30% diff --git a/server/ui/components/code/code.go b/server/ui/components/code/code.go index aff1a5265..65abf9d1e 100644 --- a/server/ui/components/code/code.go +++ b/server/ui/components/code/code.go @@ -47,7 +47,7 @@ func New(c common.Common, content, extension string) *Code { content: content, extension: extension, Viewport: vp.New(c), - NoContentStyle: c.Styles.NoContent.Copy(), + NoContentStyle: c.Styles.NoContent.Copy().SetString("No Content."), LineDigitStyle: lineDigitStyle, LineBarStyle: lineBarStyle, } diff --git a/server/ui/components/selector/selector.go b/server/ui/components/selector/selector.go index f55c7a6c6..12d156a27 100644 --- a/server/ui/components/selector/selector.go +++ b/server/ui/components/selector/selector.go @@ -48,7 +48,7 @@ func New(common common.Common, items []IdentifiableItem, delegate ItemDelegate) itms[i] = item } l := list.New(itms, delegate, common.Width, common.Height) - l.Styles.NoItems = common.Styles.NoItems + l.Styles.NoItems = common.Styles.NoContent s := &Selector{ Model: &l, common: common, diff --git a/server/ui/styles/styles.go b/server/ui/styles/styles.go index b71d5d9ba..7e975ef5d 100644 --- a/server/ui/styles/styles.go +++ b/server/ui/styles/styles.go @@ -130,8 +130,6 @@ type Styles struct { NoContent lipgloss.Style - NoItems lipgloss.Style - StatusBar lipgloss.Style StatusBarKey lipgloss.Style StatusBarValue lipgloss.Style @@ -430,15 +428,10 @@ func DefaultStyles() *Styles { s.SpinnerContainer = lipgloss.NewStyle() s.NoContent = lipgloss.NewStyle(). - SetString("No Content."). MarginTop(1). MarginLeft(2). Foreground(lipgloss.Color("242")) - s.NoItems = lipgloss.NewStyle(). - MarginLeft(2). - Foreground(lipgloss.Color("242")) - s.StatusBar = lipgloss.NewStyle(). Height(1)