You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating a new list, width is a required argument. This value does absolutely nothing unless it is set to a value smaller than the width of the widest list item. Looking through the code that implements list, I could not find anywhere in which the width member of the list.Model struct is used to force the rendering to the specified width. It does appear to be used in some capacity when rendering the filter input and the help section, but that's it. Even then, it does not appear to have an effect from my testing.
Setup
Please complete the following information along with version numbers, if applicable.
OS: KDE Neon
Shell: zsh
Terminal Emulator: Kitty
Terminal Multiplexer: N/A
Locale: US/UTF-8
To Reproduce
Steps to reproduce the behavior:
Use list.New to create a new list. Set the width to a value larger than the width of your widest list item.
render the list in your view function.
Observe that list does not respect tha value of the width argument.
Source Code
This is the source code from following the tutorial in this video:
Describe the bug
When creating a new list, width is a required argument. This value does absolutely nothing unless it is set to a value smaller than the width of the widest list item. Looking through the code that implements list, I could not find anywhere in which the width member of the
list.Model
struct is used to force the rendering to the specified width. It does appear to be used in some capacity when rendering the filter input and the help section, but that's it. Even then, it does not appear to have an effect from my testing.Setup
Please complete the following information along with version numbers, if applicable.
To Reproduce
Steps to reproduce the behavior:
list.New
to create a new list. Set the width to a value larger than the width of your widest list item.width
argument.Source Code
This is the source code from following the tutorial in this video:
Expected behavior
The value passed to width when creating a new list via
list.New
should set the width of the rendered list component.Screenshots
Screencast_20250226_141745.webm
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: