VisibleLen calcula comprimento visível em colunas do terminal (sem ANSI codes). Delegates to lipgloss.Width — the same function the bordered box renderer uses to size top/bottom borders. Sharing one measurement path is what keeps wrap math and border math in agreement when the content has emoji pre
(s string)
| 532 | // drift the right border outside the visible box; routing both sides |
| 533 | // through lipgloss.Width removes the disagreement entirely. |
| 534 | func VisibleLen(s string) int { |
| 535 | return lipgloss.Width(s) |
| 536 | } |
| 537 | |
| 538 | // RenderTimelineEvent desenha um "card" estilizado com: |
| 539 | // - cabeçalho `╭── icon title ─────╮` que se estende até a largura do conteúdo, |
no outgoing calls