Skip to content

Commit

Permalink
fix(player): Fix full help view alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 27, 2024
1 parent 36c2231 commit eaf7f2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/movie/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit eaf7f2c

Please sign in to comment.