charmbracelet / huh

Build terminal forms and prompts 🤷🏻‍♀️
MIT License
4.18k stars 113 forks source link

Theme.FieldSeparator no longer supported in 0.4.x? #250

Open dez11de opened 4 months ago

dez11de commented 4 months ago

Describe the bug In version 0.3.0 one could define a field separator. I had mine set to empty, because I like my forms small and nimble. After upgrading to 0.4.2 there always is a huuuuuge gap between de the fields. Looking at the code the gap is now hardcoded as "\n\n". Which might be fine for most, but not for me.

Expected behavior I'd like to be able to set the separation between the fields myself, and I'd like to set it to nothing.

maaslalani commented 4 months ago

Ah, we will totally add this back. I think I removed it for height calculation purposes at first but definitely should account for being able to set different field separator heights when calculating heights for scrolling!