bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.23k stars 88 forks source link

feat(@clack/prompts): dynamic max items #174

Closed Mist3rBru closed 3 months ago

Mist3rBru commented 9 months ago

This PR introduces a maxItems calculation based on available terminal rows. This ensures a responsive display, preventing issues caused by lists that might exceed the terminal's row capacity.

Demo

https://github.com/natemoo-re/clack/assets/100330057/67d437fc-9d50-4241-aea6-a0b7710f6a3b

Closes #173

changeset-bot[bot] commented 9 months ago

🦋 Changeset detected

Latest commit: f33a56f2b50291e36fb27daa8258d131ba3183f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | @clack/prompts | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

cpreston321 commented 3 months ago

LGTM