Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
18e2d60210
|
@@ -924,13 +924,7 @@ func (m *Model) handleClick(msg tea.MouseMsg) (tea.Model, tea.Cmd) {
|
|||||||
if m.zones.Get("panel-monitors").InBounds(msg) {
|
if m.zones.Get("panel-monitors").InBounds(msg) {
|
||||||
m.focusedPanel = panelMonitors
|
m.focusedPanel = panelMonitors
|
||||||
} else if m.zones.Get("panel-logs").InBounds(msg) {
|
} else if m.zones.Get("panel-logs").InBounds(msg) {
|
||||||
if m.focusedPanel == panelLogs {
|
m.focusedPanel = panelLogs
|
||||||
m.logsOpen = false
|
|
||||||
m.focusedPanel = panelMonitors
|
|
||||||
m.recalcLayout()
|
|
||||||
} else {
|
|
||||||
m.focusedPanel = panelLogs
|
|
||||||
}
|
|
||||||
return m, nil
|
return m, nil
|
||||||
} else if m.detailOpen && m.zones.Get("panel-detail").InBounds(msg) {
|
} else if m.detailOpen && m.zones.Get("panel-detail").InBounds(msg) {
|
||||||
m.focusedPanel = panelDetail
|
m.focusedPanel = panelDetail
|
||||||
|
|||||||
Reference in New Issue
Block a user