diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-08 18:06:48 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-08 18:06:48 +0200 |
| commit | a08694d8848fca916f1fde46efd61796a1d67912 (patch) | |
| tree | 02e45fae1cc24e77aa7192c4f838e17fe2108cd8 /internal/client/ui/core | |
| parent | dd4667f71d750f6e612c04fa62de9317340cf1f4 (diff) | |
Fixed an issue in user settings where the styles would only apply to the
description after an update
Diffstat (limited to 'internal/client/ui/core')
| -rw-r--r-- | internal/client/ui/core/usersettings/usersettings.go | 12 |
1 files changed, 8 insertions, 4 deletions
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, |
