From a02b7533d5bd88562824464b06a3bd2bd8aed96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Monta=C3=B1es=20Ojados?= Date: Mon, 19 Jan 2026 16:55:41 +0100 Subject: [PATCH] fix: Initialize detailsViewport in NewModel to enable scrolling --- internal/tui/model.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/internal/tui/model.go b/internal/tui/model.go index fd1a9ae..a29b6b5 100644 --- a/internal/tui/model.go +++ b/internal/tui/model.go @@ -241,15 +241,16 @@ func NewModel() Model { vp.YPosition = 0 return Model{ - currentView: ViewDashboard, - subView: SubViewNone, - networkMap: nm, - callFlowStore: sip.NewCallFlowStore(), - lastPackets: make([]string, 0, 50), - sshConfig: NewSSHConfigModel(), - nodeInput: createNodeInputs(), - viewport: vp, - styles: defaultStyles(), + currentView: ViewDashboard, + subView: SubViewNone, + networkMap: nm, + callFlowStore: sip.NewCallFlowStore(), + lastPackets: make([]string, 0, 50), + sshConfig: NewSSHConfigModel(), + nodeInput: createNodeInputs(), + viewport: vp, + detailsViewport: viewport.New(0, 0), + styles: defaultStyles(), } }