charmbracelet / charmbracelet/bubbles
Margin is causing render issue with fany list.
- Dominant language
- Go
- Stars
- 8.9k
- Forks
- 457
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 5
Description
**Describe the bug**
Having `Margin(1,1)` in `appStyle.Margin(1, 1).Render(m.list.View())` is causing wired render issue with fancy-list when we search for something.
Basically, it's rendering a description of a list that is not matching text.
**Setup**
Please complete the following information along with version numbers, if applicable.
- OS: macOS]
- Shell: zsh
- Terminal Emulator: alacritty
**To Reproduce**
Update this code here https://github.com/charmbracelet/bubbletea/blob/main/examples/list-fancy/main.go#L180
**TO**
```
return appStyle.Margin(1, 1).Render(m.list.View())
```
After this run `go run *.go`
Search for `tes` by pressing `/`
**Expected behavior**
If there is no `Margin(1, 1)` added it renders fine.
Contributor guide
Assessment
This issue has not been assessed yet.