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

fix: too much padding for small frames #3616

Merged
merged 1 commit into from
Jan 21, 2025
Merged

fix: too much padding for small frames #3616

merged 1 commit into from
Jan 21, 2025

Conversation

jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Jan 21, 2025

This fixes an issue with the frame width calculations that always reserved extra space to the max_term_width even if we didn't need that space, causing extra lines to bleed over:
Screenshot 2025-01-21 at 11 11 06 AM

This is now fixed:
Screenshot 2025-01-21 at 11 11 17 AM

We didn't need that .max() at all since we never print empty lines anyways.

@jkelleyrtp jkelleyrtp requested a review from a team as a code owner January 21, 2025 19:11
@DioxusLabs DioxusLabs deleted a comment from notion-workspace bot Jan 21, 2025
@jkelleyrtp jkelleyrtp merged commit d42b1d5 into main Jan 21, 2025
17 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/too-small-frame branch January 21, 2025 19:33
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

Successfully merging this pull request may close these issues.

1 participant