From e53c73305cb6c3ebd5c2cf8363efd7247af62e52 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 17 Nov 2025 17:10:28 -0500 Subject: [PATCH] chore: bump bubbles to v2.0.0-rc.1 and update textarea and help width usage --- go.mod | 2 +- go.sum | 4 ++-- internal/tui/components/chat/editor/editor.go | 2 +- internal/tui/components/core/status/status.go | 2 +- internal/tui/components/dialogs/models/models.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 8884c2e51a3a3a1ed181f3755d14a319e12484ca..32d267f1538d79d5de83038ffa94c4df0d5e9f81 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/charmbracelet/crush go 1.25.0 require ( - charm.land/bubbles/v2 v2.0.0-beta.1.0.20251104200223-da0b892d1759 + charm.land/bubbles/v2 v2.0.0-rc.1 charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973 charm.land/fantasy v0.3.1 charm.land/lipgloss/v2 v2.0.0-beta.3.0.20251106193318-19329a3e8410 diff --git a/go.sum b/go.sum index b9ac6af9c1bd07ad14f64ef0411aca1ee4ef0618..bc7cd371e8c4db0cf96f2905ac2df50836b8ca50 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -charm.land/bubbles/v2 v2.0.0-beta.1.0.20251104200223-da0b892d1759 h1:P1MxkVl8ZeI9tHmmrn9UzV/5Mz7heoiTgqECHRFsUcs= -charm.land/bubbles/v2 v2.0.0-beta.1.0.20251104200223-da0b892d1759/go.mod h1:G7JWaj3kDT0BDB+h5BLDUhhBLpDoRLKrpOp5QrA2SQs= +charm.land/bubbles/v2 v2.0.0-rc.1 h1:EiIFVAc3Zi/yY86td+79mPhHR7AqZ1OxF+6ztpOCRaM= +charm.land/bubbles/v2 v2.0.0-rc.1/go.mod h1:5AbN6cEd/47gkEf8TgiQ2O3RZ5QxMS14l9W+7F9fPC4= charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973 h1:Ay8VWyn/CbwltswomzWXj0m5KKfSJavFfCDCxI+j8qo= charm.land/bubbletea/v2 v2.0.0-rc.1.0.20251117161017-15f884bd2973/go.mod h1:IXFmnCnMLTWw/KQ9rEatSYqbAPAYi8kA3Yqwa1SFnLk= charm.land/fantasy v0.3.1 h1:YeMoLnaOHM3hdXq+SByxIKZxdm/2CHgKIS7HE0k/G6I= diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 1ce0a6349c01560d2d3a81d91408a25a7e4dbc83..de1a98b34595613594e83063cc12add4ba820c84 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -55,7 +55,7 @@ type editorCmp struct { x, y int app *app.App session session.Session - textarea *textarea.Model + textarea textarea.Model attachments []message.Attachment deleteMode bool readyPlaceholder string diff --git a/internal/tui/components/core/status/status.go b/internal/tui/components/core/status/status.go index db51c8f00bc9a1038f4d66d76f119d9a11825def..40c5309eb12d9c3361b4108b83f2c5165979eed8 100644 --- a/internal/tui/components/core/status/status.go +++ b/internal/tui/components/core/status/status.go @@ -40,7 +40,7 @@ func (m *statusCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) { switch msg := msg.(type) { case tea.WindowSizeMsg: m.width = msg.Width - m.help.Width = msg.Width - 2 + m.help.SetWidth(msg.Width - 2) return m, nil // Handle status info diff --git a/internal/tui/components/dialogs/models/models.go b/internal/tui/components/dialogs/models/models.go index 46b4df644c7ff6619369c03f9e68aec7cc950e71..2ab4bfc605898174057ab1fca515ee9914ccdb53 100644 --- a/internal/tui/components/dialogs/models/models.go +++ b/internal/tui/components/dialogs/models/models.go @@ -104,7 +104,7 @@ func (m *modelDialogCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) { m.wWidth = msg.Width m.wHeight = msg.Height m.apiKeyInput.SetWidth(m.width - 2) - m.help.Width = m.width - 2 + m.help.SetWidth(m.width - 2) return m, m.modelList.SetSize(m.listWidth(), m.listHeight()) case APIKeyStateChangeMsg: u, cmd := m.apiKeyInput.Update(msg)