summaryrefslogtreecommitdiff
path: root/internal/client
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-14 13:27:59 +0300
committerKyren223 <Kyren223@proton.me>2025-07-19 18:32:12 +0300
commit1bc8fc222296418224784a8fc19c06fb11cd0b21 (patch)
tree430f838efa0ec0a0cb234cb2f1d1ae709e2b32cf /internal/client
parent0a0915a977c7acb087b270327ec5190b3b4428b5 (diff)
Fixed networklist sometimes rendering outside the screen
Diffstat (limited to 'internal/client')
-rw-r--r--internal/client/ui/core/networklist/networklist.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/client/ui/core/networklist/networklist.go b/internal/client/ui/core/networklist/networklist.go
index 9b594b2..7b7b6fe 100644
--- a/internal/client/ui/core/networklist/networklist.go
+++ b/internal/client/ui/core/networklist/networklist.go
@@ -127,8 +127,7 @@ func (m Model) View() string {
}
result = lipgloss.JoinHorizontal(lipgloss.Top, result, sep.String())
-
- return lipgloss.NewStyle().Background(colors.BackgroundDimmer).Render(result)
+ return lipgloss.NewStyle().Background(colors.BackgroundDimmer).MaxHeight(ui.Height).Render(result)
}
func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {