mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
The badge was rendered at cy + 1 while the name centered around cy + ~8; on OLED with line_h = 8 the two ended up touching, and the name's drawTextEllipsized used the full cell width so any "..." would land under the digit anyway. Compute the badge width up-front, subtract it (plus a 3 px gap) from the name's max width, and render both on the same baseline (name_y). The name now shortens to "Nam…" before the badge instead of running through it. E-ink with its wider tiles already had room, so this is a strict improvement there too. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>