diff --git a/ui/pages/selection/selection.go b/ui/pages/selection/selection.go index 01e3d52a2683931589dd55fb29bea4d0cfe4203a..6ac4bf7869283d5fd59079adff93f2e6fb0f573d 100644 --- a/ui/pages/selection/selection.go +++ b/ui/pages/selection/selection.go @@ -302,6 +302,9 @@ func (s *Selection) View() string { readmeStatus, )) } - ts := s.common.Styles.Tabs.Copy() - return lipgloss.JoinVertical(lipgloss.Left, ts.Render(s.tabs.View()), view) + return lipgloss.JoinVertical( + lipgloss.Left, + s.common.Styles.Tabs.Render(s.tabs.View()), + view, + ) } diff --git a/ui/ui.go b/ui/ui.go index ccd05a1662395c5b04073050c7bcd291b53d04fa..1543146220d2aed1a2a073a72d8c0e343fe38bb1 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -240,7 +240,6 @@ func (ui *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) { func (ui *UI) View() string { var view string wm, hm := ui.getMargins() - style := ui.common.Styles.App.Copy() switch ui.state { case startState: view = "Loading..." @@ -266,7 +265,7 @@ func (ui *UI) View() string { if ui.showFooter { view = lipgloss.JoinVertical(lipgloss.Left, view, ui.footer.View()) } - return style.Render(view) + return ui.common.Styles.App.Render(view) } func (ui *UI) setRepoCmd(rn string) tea.Cmd {