on main help sign in
chore: add version
commit5249db303c68d722ef6a0e43d1baad6e521eb2bf authorKujtim Hoxha <kujtimii.h@gmail.com> dateWed 18 Jun 2025, 14:08 (1 year ago) parent4d402fd
2 files changed+10−2
internal/tui/page/chat/chat.go+9−1 todos.md+1−1
internal/tui/page/chat/chat.go+9−1
@@ -20,6 +20,7 @@ import (
2020 "github.com/charmbracelet/crush/internal/tui/page"
2121 "github.com/charmbracelet/crush/internal/tui/styles"
2222 "github.com/charmbracelet/crush/internal/tui/util"
23+ "github.com/charmbracelet/crush/internal/version"
2324 "github.com/charmbracelet/lipgloss/v2"
2425)
2526
@@ -307,7 +308,14 @@ func (p *chatPage) View() tea.View {
307308 style := t.S().Base.
308309 Border(lipgloss.RoundedBorder()).
309310 BorderForeground(t.BorderFocus)
310− details := style.Render(p.compactSidebar.View().String())
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,
315+ p.compactSidebar.View().String(),
316+ version,
317+ ),
318+ )
311319 layers = append(layers, lipgloss.NewLayer(details).X(1).Y(1))
312320 }
313321 canvas := lipgloss.NewCanvas(
todos.md+1−1
@@ -25,7 +25,7 @@
2525 - [ ] Message length (I saw the message go beyond the correct length when there are errors)
2626 - [ ] Address UX issues
2727 - [ ] Fix issue with numbers (padding) view tool
28−- [ ] Implement responsive mode
28+- [x] Implement responsive mode
2929- [ ] Update interactive mode to use the spinner
3030- [ ] Revisit the core list component
3131 - [ ] This component has become super complex we might need to fix this.