Improve delete UX and wrap the helpbar on narrow terminals.
Confirm with x, force-delete with X, and wrap keybinding hints so all shortcuts stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,6 +63,16 @@ func (m Model) renderBody(height int) string {
|
||||
menu := m.boardMenu.View()
|
||||
return lipgloss.NewStyle().Height(height).Width(m.width).Render(menu)
|
||||
|
||||
case ModeConfirmDelete:
|
||||
title := m.pendingDeleteTitle
|
||||
if title == "" {
|
||||
title = "this ticket"
|
||||
}
|
||||
prompt := m.styles.ErrorMsg.Render(fmt.Sprintf("Delete %q?", title))
|
||||
hint := m.styles.StatusMsg.Render("y/enter confirm · esc cancel")
|
||||
content := prompt + "\n" + hint
|
||||
return lipgloss.NewStyle().Height(height).Width(m.width).Render(content)
|
||||
|
||||
default:
|
||||
m.tickets.SetSize(m.width, height)
|
||||
return m.tickets.View()
|
||||
|
||||
Reference in New Issue
Block a user