From d3d027f19eb8341eea4a321699ce1050de7cbfab Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 24 Dec 2024 18:22:30 +0200 Subject: Fixed overflow in frequency list --- internal/client/ui/core/frequencycreation/frequencycreation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/client/ui/core/frequencycreation/frequencycreation.go') diff --git a/internal/client/ui/core/frequencycreation/frequencycreation.go b/internal/client/ui/core/frequencycreation/frequencycreation.go index bb4d398..fb6d94f 100644 --- a/internal/client/ui/core/frequencycreation/frequencycreation.go +++ b/internal/client/ui/core/frequencycreation/frequencycreation.go @@ -87,7 +87,7 @@ func New(network snowflake.ID) Model { name.FocusedStyle = fieldFocusedStyle name.BlurredStyle = fieldBlurredStyle name.ErrorStyle = lipgloss.NewStyle().Foreground(colors.Error) - name.Input.CharLimit = width + name.Input.CharLimit = packet.MaxFrequencyName name.Focus() name.Input.Validate = func(s string) error { if strings.TrimSpace(s) == "" { @@ -116,7 +116,7 @@ func New(network snowflake.ID) Model { lastColor: lipgloss.Color("#" + color.Value()), perms: packet.PermReadWrite, create: blurredCreate, - network: network, + network: network, nameWidth: nameWidth, precomputedStyle: lipgloss.NewStyle().Width(nameWidth / 3), -- cgit v1.3.1