on main help sign in
chore: add version
5249db3Kujtim Hoxha
internal/tui/page/chat/chat.go+9−1
@@ -20,6 +20,7 @@ import (
20 "github.com/charmbracelet/crush/internal/tui/page"
20 "github.com/charmbracelet/crush/internal/tui/page"
21 "github.com/charmbracelet/crush/internal/tui/styles"
21 "github.com/charmbracelet/crush/internal/tui/styles"
22 "github.com/charmbracelet/crush/internal/tui/util"
22 "github.com/charmbracelet/crush/internal/tui/util"
23+ "github.com/charmbracelet/crush/internal/version"
23 "github.com/charmbracelet/lipgloss/v2"
24 "github.com/charmbracelet/lipgloss/v2"
24)
25)
25
26
@@ -307,7 +308,14 @@ func (p *chatPage) View() tea.View {
307 style := t.S().Base.
308 style := t.S().Base.
308 Border(lipgloss.RoundedBorder()).
309 Border(lipgloss.RoundedBorder()).
309 BorderForeground(t.BorderFocus)
310 BorderForeground(t.BorderFocus)
311+ version := t.S().Subtle.Padding(0, 1).AlignHorizontal(lipgloss.Right).Width(p.wWidth - 4).Render(version.Version)
312+ details := style.Render(
313+ lipgloss.JoinVertical(
314+ lipgloss.Left,
310− details := style.Render(p.compactSidebar.View().String())
315+ p.compactSidebar.View().String(),
316+ version,
317+ ),
318+ )
311 layers = append(layers, lipgloss.NewLayer(details).X(1).Y(1))
319 layers = append(layers, lipgloss.NewLayer(details).X(1).Y(1))
312 }
320 }
313 canvas := lipgloss.NewCanvas(
321 canvas := lipgloss.NewCanvas(
todos.md+1−1
@@ -25,7 +25,7 @@
25 - [ ] Message length (I saw the message go beyond the correct length when there are errors)
25 - [ ] Message length (I saw the message go beyond the correct length when there are errors)
26 - [ ] Address UX issues
26 - [ ] Address UX issues
27 - [ ] Fix issue with numbers (padding) view tool
27 - [ ] Fix issue with numbers (padding) view tool
28−- [ ] Implement responsive mode
28+- [x] Implement responsive mode
29- [ ] Update interactive mode to use the spinner
29- [ ] Update interactive mode to use the spinner
30- [ ] Revisit the core list component
30- [ ] Revisit the core list component
31 - [ ] This component has become super complex we might need to fix this.
31 - [ ] This component has become super complex we might need to fix this.