renderTabBar renders the PRD tab bar.
()
| 195 | |
| 196 | // renderTabBar renders the PRD tab bar. |
| 197 | func (a *App) renderTabBar() string { |
| 198 | if a.tabBar == nil { |
| 199 | return "" |
| 200 | } |
| 201 | a.tabBar.SetSize(a.width) |
| 202 | if a.isNarrowMode() { |
| 203 | return a.tabBar.RenderCompact() |
| 204 | } |
| 205 | return a.tabBar.Render() |
| 206 | } |
| 207 | |
| 208 | // renderNarrowHeader renders a condensed header for narrow terminals. |
| 209 | func (a *App) renderNarrowHeader() string { |
no test coverage detected