Commit 6ae8f55
authored
fix(init): preserve welcome banner alignment (#1255)
## Summary
The `sentry init` welcome screen centered every block-art row
independently. Because the top row is narrower than the rest, the arch
shifted to the right relative to the wordmark.
Center the banner using its widest row so the artwork keeps its authored
indentation while the responsive variants remain unchanged. Add an Ink
regression test that verifies every row position and the centered banner
origin.
## Test plan
- [x] `pnpm run lint`
- [x] `pnpm vitest run test/lib/init/ui/ink-app.snapshot.test.tsx
--coverage.enabled=false`
- [x] `pnpm run typecheck`
- [x] `git diff --check`1 parent 9fa96f6 commit 6ae8f55
2 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
628 | 630 | | |
629 | 631 | | |
630 | 632 | | |
631 | 633 | | |
632 | | - | |
633 | 634 | | |
634 | 635 | | |
| 636 | + | |
635 | 637 | | |
636 | 638 | | |
637 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
310 | 339 | | |
311 | 340 | | |
312 | 341 | | |
| |||
0 commit comments