Skip to content

Commit 391ae76

Browse files
committed
Try fix textinput with prompt wrong width
1 parent 9226476 commit 391ae76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

widget/textinput/textinput.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (w *Widget) Resize(size orvyn.Size) {
6969

7070
// 22.04.2026 - Fixed the "space" padding in the bubble textinput
7171
contentSize := w.GetContentSize()
72-
w.Model.Width = contentSize.Width
72+
w.Model.Width = contentSize.Width - len(w.Model.Prompt)
7373

7474
if len(w.Model.Value()) > 0 || len(w.Model.Placeholder) == 0 {
7575
w.Model.Width--

0 commit comments

Comments
 (0)