Change summary
ui/pages/selection/selection.go | 7 +++++--
ui/ui.go | 3 +--
2 files changed, 6 insertions(+), 4 deletions(-)
Detailed changes
@@ -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,
+ )
}
@@ -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 {