Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Margin is causing render issue with fany list. #637

Open
abhimanyu003 opened this issue Oct 14, 2024 · 0 comments
Open

Margin is causing render issue with fany list. #637

abhimanyu003 opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abhimanyu003
Copy link

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 /

image

Expected behavior

If there is no Margin(1, 1) added it renders fine.

image
@meowgorithm meowgorithm transferred this issue from charmbracelet/bubbletea Oct 14, 2024
@bashbunni bashbunni added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants