diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-14 13:27:59 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:32:12 +0300 |
| commit | 1bc8fc222296418224784a8fc19c06fb11cd0b21 (patch) | |
| tree | 430f838efa0ec0a0cb234cb2f1d1ae709e2b32cf /internal | |
| parent | 0a0915a977c7acb087b270327ec5190b3b4428b5 (diff) | |
Fixed networklist sometimes rendering outside the screen
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/client/ui/core/networklist/networklist.go | 3 |
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) { |
