From a08694d8848fca916f1fde46efd61796a1d67912 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 8 Feb 2025 18:06:48 +0200 Subject: Fixed an issue in user settings where the styles would only apply to the description after an update --- internal/client/ui/core/usersettings/usersettings.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'internal/client/ui/core') diff --git a/internal/client/ui/core/usersettings/usersettings.go b/internal/client/ui/core/usersettings/usersettings.go index e5c518a..49fa4ea 100644 --- a/internal/client/ui/core/usersettings/usersettings.go +++ b/internal/client/ui/core/usersettings/usersettings.go @@ -58,12 +58,15 @@ func New() Model { Background(colors.Background).Foreground(colors.White) focusedTextStyle := blurredTextStyle.Foreground(colors.Focus) - fieldBlurredStyle := lipgloss.NewStyle().Width(width). - PaddingLeft(1).Border(lipgloss.RoundedBorder()). - BorderBackground(colors.Background).BorderForeground(colors.DarkCyan). + fieldBlurredStyle := lipgloss.NewStyle(). + PaddingLeft(1). + Border(lipgloss.RoundedBorder()). + BorderForeground(colors.DarkCyan). + BorderBackground(colors.Background). Background(colors.Background) fieldFocusedStyle := fieldBlurredStyle. - Border(lipgloss.ThickBorder()).BorderForeground(colors.Focus) + Border(lipgloss.ThickBorder()). + BorderForeground(colors.Focus) name := field.New(width) name.Header = "Username" @@ -94,6 +97,7 @@ func New() Model { description.ErrorStyle = lipgloss.NewStyle().Foreground(colors.Error) description.Input.CharLimit = width description.Input.SetValue(user.Description) + description.Blur() return Model{ name: name, -- cgit v1.3.1