wip: refactoring tui

This commit is contained in:
adamdottv
2025-05-30 06:03:34 -05:00
parent c5413c8c8d
commit b1b402faa7
2 changed files with 19 additions and 21 deletions

View File

@@ -101,7 +101,6 @@ func (m *messagesCmp) renderView() {
return
}
t := theme.CurrentTheme()
messages := make([]string, 0)
for _, msg := range m.app.Messages {
switch msg.Role {
@@ -115,16 +114,13 @@ func (m *messagesCmp) renderView() {
}
m.viewport.SetContent(
styles.ForceReplaceBackgroundWithLipgloss(
styles.BaseStyle().
Render(
lipgloss.JoinVertical(
lipgloss.Top,
messages...,
),
styles.BaseStyle().
Render(
lipgloss.JoinVertical(
lipgloss.Top,
messages...,
),
t.Background(),
),
),
)
}