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

NextLabel in NewNote won't show up #538

Open
mrusme opened this issue Feb 18, 2025 · 0 comments
Open

NextLabel in NewNote won't show up #538

mrusme opened this issue Feb 18, 2025 · 0 comments

Comments

@mrusme
Copy link

mrusme commented Feb 18, 2025

Describe the bug
In this example code:

	form = huh.NewForm(
		huh.NewGroup(
			huh.NewNote().
				Title("Xxx xxxxxxxx xxxx xxxxxxx!").
				Description(
					"xxxxxx xx x xxxxx xxxxx xxxx xxxx  xxxxxxxxxx xxxx xxxxxxxxx xx"+
						" xxxx xxxx  xxxxx xx xxxxxxx xxxxxxxxxx xxxx xxx xxx xx x"+
						" xxxxxx xxxxxxxxxxx xxxxxxxx xxxxxxx xxxxxxxx xxx xx xxxxxxxx"+
						" xxxxxxx xxxx xx xxxxxx xxx xxxx xxxx xxxx xxxx xxxx xxxxxx\n\n"+
						" xxxxx xx xxxxxxxxxxx xxx xx xxxxxxxx xxxx xxxxxxxx xxx xxxx xx"+
						" xxxx xx x xx xxxxxxx xx xxx xxxxxxxx xxx xxxxxxxx xxxxxx xxxxx"+
						" xx xxxxxx xxx xxxxxxx xxxxxxxx xxx xxxx xxxxx xxxx xxx xxxxxxx"+
						" the choice whether to allow that or not.\n\n",
				).
				Next(true).
				NextLabel("Okay"),
		),
	).WithAccessible(accessible).WithTheme(theme)

The NextLabel won't render, presumably because the height of the form is too small:

Image

Additional context
It did work sometime last year, because I've been playing around with the code for a while, but at some point it stopped showing up. I assume that something in regard to the rendering of text has changed.

I tried downgrading huh to older versions but I couldn't get it to a working status again, so I cannot tell which change/version it was that broke it unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant