summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/components/chat/messages.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-30 06:03:34 -0500
committeradamdottv <[email protected]>2025-05-30 06:03:34 -0500
commitb1b402faa7616a4dd976a2a79e57ae0334ab509b (patch)
tree81366831e6962782c1db4c741d4d81713df41adb /internal/tui/components/chat/messages.go
parentc5413c8c8dc2c05afcd766c9e9a92a8e541aa403 (diff)
downloadopencode-b1b402faa7616a4dd976a2a79e57ae0334ab509b.tar.gz
opencode-b1b402faa7616a4dd976a2a79e57ae0334ab509b.zip
wip: refactoring tui
Diffstat (limited to 'internal/tui/components/chat/messages.go')
-rw-r--r--internal/tui/components/chat/messages.go16
1 files changed, 6 insertions, 10 deletions
diff --git a/internal/tui/components/chat/messages.go b/internal/tui/components/chat/messages.go
index 50a0f4200..0dda7ae32 100644
--- a/internal/tui/components/chat/messages.go
+++ b/internal/tui/components/chat/messages.go
@@ -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(),
- ),
+ ),
)
}