Skip to content

Commit

Permalink
adjust list height
Browse files Browse the repository at this point in the history
  • Loading branch information
ardevd committed Feb 14, 2024
1 parent 7b6ed75 commit 6fc55df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/tui/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ func InitDashboard(service *lndclient.GrpcLndServices, nodeData lnd.NodeData) *D

func (m *DashboardModel) initData(width, height int) {

defaultList := list.New([]list.Item{}, list.NewDefaultDelegate(), width, height/2)
adjustedHeight := height + height/3
defaultList := list.New([]list.Item{}, list.NewDefaultDelegate(), width, adjustedHeight / 2)
compressedList := list.New([]list.Item{}, list.NewDefaultDelegate(), width, adjustedHeight / 4)
defaultList.SetShowHelp(true)

m.lists = []list.Model{defaultList, defaultList}
m.lists = []list.Model{defaultList, compressedList, compressedList}
m.forms = []*huh.Form{m.generatePaymentToolsForm(), m.generateChannelToolsForm(), m.generateMessageToolsForm()}

m.lists[channels].Title = "Channels"
Expand Down

0 comments on commit 6fc55df

Please sign in to comment.