Fixed rendering issue with pings in frequencylist

This commit is contained in:
2025-02-02 18:30:22 +02:00
parent 69bbde190e
commit b3e4eb11be

View File

@@ -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().