on main help sign in
chore: bump bubbles to v2.0.0-rc.1 and update textarea and help width usage
e53c733Ayman Bagabas
go.mod+1−1
@@ -3,7 +3,7 @@ module github.com/charmbracelet/crush
3go 1.25.0
3go 1.25.0
4
4
5require (
5require (
6− charm.land/bubbles/v2 v2.0.0-beta.1.0.20251104200223-da0b892d1759
6+ charm.land/bubbles/v2 v2.0.0-rc.1
7 charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973
7 charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973
8 charm.land/fantasy v0.3.1
8 charm.land/fantasy v0.3.1
9 charm.land/lipgloss/v2 v2.0.0-beta.3.0.20251106193318-19329a3e8410
9 charm.land/lipgloss/v2 v2.0.0-beta.3.0.20251106193318-19329a3e8410
go.sum+2−2
@@ -1,5 +1,5 @@
1−charm.land/bubbles/v2 v2.0.0-beta.1.0.20251104200223-da0b892d1759 h1:P1MxkVl8ZeI9tHmmrn9UzV/5Mz7heoiTgqECHRFsUcs=
1+charm.land/bubbles/v2 v2.0.0-rc.1 h1:EiIFVAc3Zi/yY86td+79mPhHR7AqZ1OxF+6ztpOCRaM=
2−charm.land/bubbles/v2 v2.0.0-beta.1.0.20251104200223-da0b892d1759/go.mod h1:G7JWaj3kDT0BDB+h5BLDUhhBLpDoRLKrpOp5QrA2SQs=
2+charm.land/bubbles/v2 v2.0.0-rc.1/go.mod h1:5AbN6cEd/47gkEf8TgiQ2O3RZ5QxMS14l9W+7F9fPC4=
3charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973 h1:Ay8VWyn/CbwltswomzWXj0m5KKfSJavFfCDCxI+j8qo=
3charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973 h1:Ay8VWyn/CbwltswomzWXj0m5KKfSJavFfCDCxI+j8qo=
4charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973/go.mod h1:IXFmnCnMLTWw/KQ9rEatSYqbAPAYi8kA3Yqwa1SFnLk=
4charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973/go.mod h1:IXFmnCnMLTWw/KQ9rEatSYqbAPAYi8kA3Yqwa1SFnLk=
5charm.land/fantasy v0.3.1 h1:YeMoLnaOHM3hdXq+SByxIKZxdm/2CHgKIS7HE0k/G6I=
5charm.land/fantasy v0.3.1 h1:YeMoLnaOHM3hdXq+SByxIKZxdm/2CHgKIS7HE0k/G6I=
internal/tui/components/chat/editor/editor.go+1−1
@@ -55,7 +55,7 @@ type editorCmp struct {
55 x, y int
55 x, y int
56 app *app.App
56 app *app.App
57 session session.Session
57 session session.Session
58− textarea *textarea.Model
58+ textarea textarea.Model
59 attachments []message.Attachment
59 attachments []message.Attachment
60 deleteMode bool
60 deleteMode bool
61 readyPlaceholder string
61 readyPlaceholder string
internal/tui/components/core/status/status.go+1−1
@@ -40,7 +40,7 @@ func (m *statusCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) {
40 switch msg := msg.(type) {
40 switch msg := msg.(type) {
41 case tea.WindowSizeMsg:
41 case tea.WindowSizeMsg:
42 m.width = msg.Width
42 m.width = msg.Width
43− m.help.Width = msg.Width - 2
43+ m.help.SetWidth(msg.Width - 2)
44 return m, nil
44 return m, nil
45
45
46 // Handle status info
46 // Handle status info
internal/tui/components/dialogs/models/models.go+1−1
@@ -104,7 +104,7 @@ func (m *modelDialogCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) {
104 m.wWidth = msg.Width
104 m.wWidth = msg.Width
105 m.wHeight = msg.Height
105 m.wHeight = msg.Height
106 m.apiKeyInput.SetWidth(m.width - 2)
106 m.apiKeyInput.SetWidth(m.width - 2)
107− m.help.Width = m.width - 2
107+ m.help.SetWidth(m.width - 2)
108 return m, m.modelList.SetSize(m.listWidth(), m.listHeight())
108 return m, m.modelList.SetSize(m.listWidth(), m.listHeight())
109 case APIKeyStateChangeMsg:
109 case APIKeyStateChangeMsg:
110 u, cmd := m.apiKeyInput.Update(msg)
110 u, cmd := m.apiKeyInput.Update(msg)