remove edit/normal mode
This commit is contained in:
parent
1b22acbc58
commit
2c5003e3fc
10 changed files with 92 additions and 116 deletions
|
|
@ -122,6 +122,8 @@ func (s *sessionDialogCmp) View() string {
|
|||
}
|
||||
}
|
||||
|
||||
maxWidth = max(30, min(maxWidth, s.width-15)) // Limit width to avoid overflow
|
||||
|
||||
// Limit height to avoid taking up too much screen space
|
||||
maxVisibleSessions := min(10, len(s.sessions))
|
||||
|
||||
|
|
@ -169,7 +171,6 @@ func (s *sessionDialogCmp) View() string {
|
|||
styles.BaseStyle.Width(maxWidth).Render(""),
|
||||
styles.BaseStyle.Width(maxWidth).Render(lipgloss.JoinVertical(lipgloss.Left, sessionItems...)),
|
||||
styles.BaseStyle.Width(maxWidth).Render(""),
|
||||
styles.BaseStyle.Width(maxWidth).Padding(0, 1).Foreground(styles.ForgroundDim).Render("↑/k: up ↓/j: down enter: select esc: cancel"),
|
||||
)
|
||||
|
||||
return styles.BaseStyle.Padding(1, 2).
|
||||
|
|
@ -223,4 +224,3 @@ func NewSessionDialogCmp() SessionDialog {
|
|||
selectedSessionID: "",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue