diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-02 18:30:22 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-02 18:30:22 +0200 |
| commit | b3e4eb11be3331695ce93b6108ed0bbb4e691f78 (patch) | |
| tree | b2898468bdc87457490a1fd5998699727cd5a472 | |
| parent | 69bbde190ec8e5df838a8b57ae486c0304aab0c5 (diff) | |
Fixed rendering issue with pings in frequencylist
| -rw-r--r-- | internal/client/ui/core/frequencylist/frequencylist.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/internal/client/ui/core/frequencylist/frequencylist.go b/internal/client/ui/core/frequencylist/frequencylist.go index df33be4..290e60a 100644 --- a/internal/client/ui/core/frequencylist/frequencylist.go +++ b/internal/client/ui/core/frequencylist/frequencylist.go @@ -29,7 +29,7 @@ var ( margin = 2 padding = 1 - frequencyStyle = lipgloss.NewStyle(). + frequencyStyle = lipgloss.NewStyle().MaxHeight(1). Margin(0, margin).Padding(0, padding).Align(lipgloss.Left) symbolReadWrite = " " @@ -55,7 +55,7 @@ var ( } return notifs }() - notifStyle = lipgloss.NewStyle().Foreground(colors.Red) + notifStyle = lipgloss.NewStyle().Foreground(colors.Red).Inline(true) notifWidth = 2 ) @@ -139,10 +139,6 @@ func (m Model) View() string { } } - if m.index == m.base+i { - notifStyle = notifStyle.Background(colors.BackgroundHighlight) - } - frequencyName := "" if lipgloss.Width(frequency.Name) <= maxFrequencyWidth { frequencyName = lipgloss.NewStyle(). |
