diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-24 18:22:30 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-24 18:22:30 +0200 |
| commit | d3d027f19eb8341eea4a321699ce1050de7cbfab (patch) | |
| tree | a610ffb53d2eaff79af24a7cc9c0346821c4e46f /internal/client/ui/core/frequencycreation/frequencycreation.go | |
| parent | 2d4b0df290a17b9f109443be177f2bed32a64641 (diff) | |
Fixed overflow in frequency list
Diffstat (limited to 'internal/client/ui/core/frequencycreation/frequencycreation.go')
| -rw-r--r-- | internal/client/ui/core/frequencycreation/frequencycreation.go | 4 |
1 files changed, 2 insertions, 2 deletions
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), |
