Fix footer background fill rendering
This commit is contained in:
parent
715cbd6e37
commit
7925a33568
1 changed files with 8 additions and 6 deletions
|
|
@ -1501,12 +1501,14 @@ func renderFooter(m Model) string {
|
||||||
line += modeLabel
|
line += modeLabel
|
||||||
}
|
}
|
||||||
line = " " + line
|
line = " " + line
|
||||||
return lipgloss.PlaceHorizontal(
|
line = ansi.Truncate(line, m.width, "")
|
||||||
m.width,
|
fill := m.width - ansi.StringWidth(line)
|
||||||
lipgloss.Left,
|
if fill > 0 {
|
||||||
line,
|
line += lipgloss.NewStyle().
|
||||||
lipgloss.WithWhitespaceBackground(m.palette.Footer),
|
Background(m.palette.Footer).
|
||||||
)
|
Render(strings.Repeat(" ", fill))
|
||||||
|
}
|
||||||
|
return line
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderModal(m Model, palette theme.Palette, width int) string {
|
func renderModal(m Model, palette theme.Palette, width int) string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue