Skip to content

v0.1.11: fix setup wizard banner alignment#18

Merged
lai3d merged 1 commit into
mainfrom
claude/banner-align
May 21, 2026
Merged

v0.1.11: fix setup wizard banner alignment#18
lai3d merged 1 commit into
mainfrom
claude/banner-align

Conversation

@lai3d

@lai3d lai3d commented May 21, 2026

Copy link
Copy Markdown
Contributor

The middle row of the welcome banner was wider than the borders — the right hung past / and the glyph rendered as 2 cells in some fonts.

Drop the glyph, use strict cell math so the box is symmetric regardless of font fallback.

🤖 Generated with Claude Code

The middle row of the welcome banner was 2 cells wider than the
horizontal borders — the right `│` stuck out past the `┐`/`┘` and the
`⚕` glyph (U+2695) renders as 2 cells wide in some terminal fonts.

Drop the glyph; use strict cell math:
- inner_width = pad*2 + title.chars().count()
- top:    `┌` + inner_width `─` + `┐`
- middle: `│` + pad spaces + title + pad spaces + `│`
- bottom: `└` + inner_width `─` + `┘`

Result is a symmetric 32-cell-wide box that doesn't depend on font
fallback for any glyph.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lai3d lai3d merged commit 8369573 into main May 21, 2026
2 checks passed
@lai3d lai3d deleted the claude/banner-align branch May 21, 2026 01:50
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