fix: calculate box width with the title width#362
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #362 +/- ##
===========================================
- Coverage 61.08% 29.26% -31.82%
===========================================
Files 13 43 +30
Lines 1380 1722 +342
Branches 58 87 +29
===========================================
- Hits 843 504 -339
- Misses 537 1191 +654
- Partials 0 27 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
Thanks! |
This was referenced Aug 28, 2025
1 task
1 task
Contributor
|
I'm trying to create a "letter" document in the terminal and realising that box width determines width based on longest line (that tends to be a single string with all contents) and so it overflows the terminal and wrapped awkwardly. Perhaps style can take a maxWidth option as well and then wrap contents accordingly? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #300