From eaf7f2c671b2ffc97ba28f87df2642cdfa3517c4 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sat, 27 Apr 2024 05:16:20 -0500 Subject: [PATCH] fix(player): Fix full help view alignment See charmbracelet/bubbles#415 --- internal/movie/player.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/movie/player.go b/internal/movie/player.go index d490a1a7..77db9ed2 100644 --- a/internal/movie/player.go +++ b/internal/movie/player.go @@ -309,7 +309,11 @@ func (p *Player) OptionsView() string { func (p *Player) HelpView() string { p.helpViewStale = false - return p.zone.Mark("help", p.help.View(p.keymap)) + v := p.help.View(p.keymap) + if p.help.ShowAll { + v = lipgloss.JoinHorizontal(lipgloss.Top, strings.Repeat(" ", 5), v) + } + return p.zone.Mark("help", v) } func (p *Player) pause() {