fix: Initialize detailsViewport in NewModel to enable scrolling

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-19 16:55:41 +01:00
parent daefefb5aa
commit a02b7533d5

View File

@@ -241,15 +241,16 @@ func NewModel() Model {
vp.YPosition = 0 vp.YPosition = 0
return Model{ return Model{
currentView: ViewDashboard, currentView: ViewDashboard,
subView: SubViewNone, subView: SubViewNone,
networkMap: nm, networkMap: nm,
callFlowStore: sip.NewCallFlowStore(), callFlowStore: sip.NewCallFlowStore(),
lastPackets: make([]string, 0, 50), lastPackets: make([]string, 0, 50),
sshConfig: NewSSHConfigModel(), sshConfig: NewSSHConfigModel(),
nodeInput: createNodeInputs(), nodeInput: createNodeInputs(),
viewport: vp, viewport: vp,
styles: defaultStyles(), detailsViewport: viewport.New(0, 0),
styles: defaultStyles(),
} }
} }