mirror of
https://github.com/Kyren223/eko.git
synced 2026-08-28 02:11:31 +00:00
Fixed rendering issue with pings in frequencylist
This commit is contained in:
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user