Skip to content

Commit

Permalink
fix: initial textinput width (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcpereira authored Nov 5, 2024
1 parent a1c0588 commit 2358d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/search/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewModel(ctx *context.ProgramContext, opts SearchOptions) Model {
ti := textinput.New()
ti.Placeholder = opts.Placeholder
ti.PlaceholderStyle = lipgloss.NewStyle().Foreground(ctx.Theme.FaintText)
ti.Width = 0
ti.Width = ctx.MainContentWidth - lipgloss.Width(prompt) - 6
ti.PromptStyle = ti.PromptStyle.Foreground(ctx.Theme.SecondaryText)
ti.Prompt = prompt
ti.TextStyle = ti.TextStyle.Faint(true)
Expand Down

0 comments on commit 2358d9b

Please sign in to comment.