Skip to content

fix(banner): equalize and trim padding 15% on both ends#49

Merged
Velascat merged 1 commit intomainfrom
fix/banner-equal-padding
May 8, 2026
Merged

fix(banner): equalize and trim padding 15% on both ends#49
Velascat merged 1 commit intomainfrom
fix/banner-equal-padding

Conversation

@Velascat
Copy link
Copy Markdown
Owner

@Velascat Velascat commented May 8, 2026

Summary

  • Equalizes leading pad and trailing gap to the same formula: max(4, (w-1) * 17 // 80)
  • Equivalent to (w-1)//4 with 15% trimmed — symmetric on both ends
  • At 120 cols: 25 spaces each side; at 80 cols: 16 spaces each side

Test plan

  • Verify banner padding looks balanced at various terminal widths

Both lp and g now use max(4, (w-1)*17//80) — equivalent to (w-1)//4
with a 15% reduction applied equally to both sides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Velascat Velascat merged commit f8e9279 into main May 8, 2026
2 checks passed
@Velascat Velascat deleted the fix/banner-equal-padding branch May 8, 2026 20:14
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