mirror of
https://github.com/charmbracelet/gum
synced 2024-06-21 06:55:08 +02:00
fix: full width on gum filter
This commit is contained in:
parent
c71c918c86
commit
aa7683f5e0
|
@ -108,6 +108,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
if m.height == 0 || m.height > msg.Height {
|
if m.height == 0 || m.height > msg.Height {
|
||||||
m.viewport.Height = msg.Height - lipgloss.Height(m.textinput.View())
|
m.viewport.Height = msg.Height - lipgloss.Height(m.textinput.View())
|
||||||
}
|
}
|
||||||
|
m.viewport.Width = msg.Width
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
switch msg.String() {
|
switch msg.String() {
|
||||||
case "ctrl+c", "esc":
|
case "ctrl+c", "esc":
|
||||||
|
|
Loading…
Reference in a new issue