Expand focused run panes and prioritize graph height
This commit is contained in:
@@ -336,6 +336,11 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
} else if msg.Type == protocol.Run || msg.Type == protocol.RunStarted {
|
||||
accepted := m.runOpen && msg.RunDetail != nil && ((msg.Type == protocol.Run && msg.RunDetail.ID == m.requestedRunID) || (msg.Type == protocol.RunStarted && msg.ID == m.runStartRequest))
|
||||
if accepted {
|
||||
if m.runDetail == nil {
|
||||
m.runGraphFocus = true
|
||||
m.runDetailFocus = false
|
||||
m.runGraphTop, m.runGraphPan = 0, 0
|
||||
}
|
||||
if msg.Type == protocol.RunStarted {
|
||||
m.runStartRequest = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user