minor fixes
This commit is contained in:
parent
2af1bbb828
commit
65055c7687
3 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ func (m statusCmp) View() string {
|
|||
}
|
||||
// Truncate message if it's longer than available width
|
||||
msg := m.info.Msg
|
||||
availWidth := m.availableFooterMsgWidth() - 3 // Account for ellipsis
|
||||
availWidth := m.availableFooterMsgWidth() - 10
|
||||
if len(msg) > availWidth && availWidth > 0 {
|
||||
msg = msg[:availWidth] + "..."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,6 @@ func (i *sessionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
case tea.KeyMsg:
|
||||
switch {
|
||||
case key.Matches(msg, sessionKeyMapValue.Select):
|
||||
i.app.Logger.PersistInfo("Session selected")
|
||||
selected := i.list.SelectedItem()
|
||||
if selected == nil {
|
||||
return i, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue