adding assignee to tui

This commit is contained in:
viljarb
2026-03-11 18:40:21 +01:00
parent a30c822529
commit c72b15f721
8 changed files with 116 additions and 19 deletions

View File

@@ -56,6 +56,20 @@ func (m *Model) View() string {
mainView := lipgloss.JoinVertical(lipgloss.Left, header, content, footer)
if m.editingAssignee {
editBoxWidth := min(60, m.width-4)
m.assigneeInput.Width = editBoxWidth - 2
editContent := lipgloss.JoinVertical(lipgloss.Left,
styles.LabelStyle.Render("Change assignee for "+m.assigneeIssueID+" (Enter to save, Esc to cancel):"),
m.assigneeInput.View(),
)
editBox := styles.ContainerStyle.
Width(editBoxWidth).
BorderForeground(styles.PrimaryBorder).
Render(editContent)
return lipgloss.Place(m.width, m.height, lipgloss.Center, lipgloss.Center, editBox)
}
if m.editingTitle {
editBoxWidth := min(60, m.width-4)
m.titleInput.Width = editBoxWidth - 2