leanCheckbox renders the "Lean Mode" checkbox line.
()
| 639 | |
| 640 | // leanCheckbox renders the "Lean Mode" checkbox line. |
| 641 | func (m *agentPickerModel) leanCheckbox() string { |
| 642 | box := styles.MutedStyle.Render("[ ]") |
| 643 | if m.leanMode { |
| 644 | box = styles.SuccessStyle.Render("[x]") |
| 645 | } |
| 646 | return box + " " + styles.SecondaryStyle.Render("Lean Mode") |
| 647 | } |
| 648 | |
| 649 | // panelSize returns the outer dimensions of the rendered picker panel without |
| 650 | // rendering every card. cardAt relies on it to place hit zones, and it is |
no test coverage detected