File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ func NewInputWidgetDemo() *InputWidgetDemo {
2424 s := new (InputWidgetDemo )
2525
2626 s .tiDemo = textinput .New ()
27+ s .tiDemo .Prompt = ">"
28+ s .tiDemo .Placeholder = "Amazing placeholder"
2729 //s.tiDemo.Placeholder = "Placeholder"
2830
2931 s .taDemo = textarea .New ()
Original file line number Diff line number Diff line change @@ -69,10 +69,11 @@ 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 - len ( w . Model . Prompt )
72+ w .Model .Width = contentSize .Width
7373
7474 if len (w .Model .Value ()) > 0 || len (w .Model .Placeholder ) == 0 {
7575 w .Model .Width --
76+ w .Model .Width -= len (w .Model .Prompt )
7677 }
7778
7879 // For the Bubbles textinput to process the update
You can’t perform that action at this time.
0 commit comments