-
-
Notifications
You must be signed in to change notification settings - Fork 813
💄 Add option for panels to fit to content #1096
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
base: master
Are you sure you want to change the base?
💄 Add option for panels to fit to content #1096
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Any chances to merge this PR soon? Can someone please restart CI? |
This comment was marked as outdated.
This comment was marked as outdated.
I believe what's missing is test coverage for my new code and logic, which is not my strong suit. I would appreciate any help or suggestions on how to approach writing tests for this. |
This comment was marked as resolved.
This comment was marked as resolved.
📝 Docs previewLast commit df3209c at: https://268c2980.typertiangolo.pages.dev Modified Pages |
|
I updated the PR to remove merge conflicts, and:
Remaining issues:
|
Yes, of course, as long as the CI is running 3.8/3.9 tests, that means we're still officially supporting these versions of Python, even if they've become EOL. We'll likely drop them at some point in the near future, but nevertheless every PR should always pass the full test suite. |
This reverts commit 7f9e5a4.
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
|
@svlandeg thanks for your review and suggestions today! 😊 I guess my remaining points are:
|
|
Hi @harkabeeparolus, thanks for the status update! I'll try to look into these issues sometime in the next 10 days. |
…lus/typer into feature/rich_expand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now looks good to me, though another review from someone who hasn't worked on it directly would be good 🙏
(Also @harkabeeparolus: feel free to check and report whether the docs look good to you after my edits!)
Current docs link can be found here.
|
Yeah, the docs look great to me! The example really helps to illustrate the different look. @svlandeg, thank you so much! You've been super helpful and I'm really happy. 😊 |
Provide an option for using Rich
Panel.fit()akaPanel(expand=False)for help panels and errors. This was mentioned in discussion #607 and #680. To opt into this new, non-default behavior, just use:I think this can look nicer on very wide terminals, especially for CLIs with few parameters, or short parameter descriptions, so I would prefer to have the option to choose this style sometimes.
Status
Example