Commit 1632f84
committed
fix(tui): use lipgloss.Width in padRight/padLeft and split embedded newlines in addLog
- padRight/padLeft used len(s) which counts ANSI escape bytes as visible chars.
Styled strings (accentStyle, warnStyle...) had len >> visual width, causing
the status/version/source columns to overflow into description → columns gone.
Fixed by using lipgloss.Width() for measurement and truncate() for cutting.
- addLog stored Nuxt multi-line chunks as a single logLines entry. The panel
height calculation counted 1 line but the renderer produced N lines via the
embedded \n → panel exceeded allocated height → wave/surf scroll effect.
Fixed by splitting on \n before storing, skipping empty sub-lines.1 parent 788a3cd commit 1632f84
2 files changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
441 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
442 | 443 | | |
443 | | - | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | | - | |
448 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
449 | 451 | | |
450 | | - | |
| 452 | + | |
451 | 453 | | |
452 | 454 | | |
453 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
475 | 485 | | |
476 | | - | |
| 486 | + | |
477 | 487 | | |
478 | 488 | | |
479 | 489 | | |
| 490 | + | |
480 | 491 | | |
481 | 492 | | |
482 | 493 | | |
| |||
0 commit comments