fix: markdown wrapping issue

This commit is contained in:
adamdottv
2025-06-23 11:20:44 -05:00
parent 0b261054a2
commit 61f057337a
2 changed files with 7 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ func renderText(message client.MessageInfo, text string, author string) string {
textWidth := max(lipgloss.Width(text), lipgloss.Width(info))
markdownWidth := min(textWidth, width-padding-4) // -4 for the border and padding
if message.Role == client.Assistant {
markdownWidth = width - padding - 4
markdownWidth = width - padding - 4 - 2
}
content := toMarkdown(text, markdownWidth, t.BackgroundPanel())
content = strings.Join([]string{content, info}, "\n")