diff --git a/internal/tui/page/chat/chat.go b/internal/tui/page/chat/chat.go index 4985cdc9bca2fcd7979e3a1b5f674e34272d189e..e1e85cc65f9d9c06ee5ab726b38f810da08a0d7b 100644 --- a/internal/tui/page/chat/chat.go +++ b/internal/tui/page/chat/chat.go @@ -20,6 +20,7 @@ import ( "github.com/charmbracelet/crush/internal/tui/page" "github.com/charmbracelet/crush/internal/tui/styles" "github.com/charmbracelet/crush/internal/tui/util" + "github.com/charmbracelet/crush/internal/version" "github.com/charmbracelet/lipgloss/v2" ) @@ -307,7 +308,14 @@ func (p *chatPage) View() tea.View { style := t.S().Base. Border(lipgloss.RoundedBorder()). BorderForeground(t.BorderFocus) - details := style.Render(p.compactSidebar.View().String()) + version := t.S().Subtle.Padding(0, 1).AlignHorizontal(lipgloss.Right).Width(p.wWidth - 4).Render(version.Version) + details := style.Render( + lipgloss.JoinVertical( + lipgloss.Left, + p.compactSidebar.View().String(), + version, + ), + ) layers = append(layers, lipgloss.NewLayer(details).X(1).Y(1)) } canvas := lipgloss.NewCanvas( diff --git a/todos.md b/todos.md index b577bc23d910ddd28e71ef299aee9473e5c646dd..ca0ad74ef08258b6b209a3da7ff79f3922ae9e40 100644 --- a/todos.md +++ b/todos.md @@ -25,7 +25,7 @@ - [ ] Message length (I saw the message go beyond the correct length when there are errors) - [ ] Address UX issues - [ ] Fix issue with numbers (padding) view tool -- [ ] Implement responsive mode +- [x] Implement responsive mode - [ ] Update interactive mode to use the spinner - [ ] Revisit the core list component - [ ] This component has become super complex we might need to fix this.