renderNarrowActivityLine renders the activity line for narrow terminals.
()
| 329 | |
| 330 | // renderNarrowActivityLine renders the activity line for narrow terminals. |
| 331 | func (a *App) renderNarrowActivityLine() string { |
| 332 | activity := a.lastActivity |
| 333 | if activity == "" { |
| 334 | activity = "Ready" |
| 335 | } |
| 336 | |
| 337 | // More aggressive truncation for narrow mode |
| 338 | maxLen := a.width - 2 |
| 339 | if len(activity) > maxLen && maxLen > 3 { |
| 340 | activity = activity[:maxLen-3] + "..." |
| 341 | } |
| 342 | |
| 343 | // Use the centralized activity style system |
| 344 | activityStyle := GetActivityStyle(a.state) |
| 345 | |
| 346 | return activityStyle.Render(activity) |
| 347 | } |
| 348 | |
| 349 | // renderActivityLine renders the current activity status line. |
| 350 | func (a *App) renderActivityLine() string { |
no test coverage detected