Skip to content

Commit

Permalink
Add newlines as a workaround for incorrect text width when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben9922 committed Apr 23, 2023
1 parent 2418cc7 commit c81d99b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ func createTitleView(maxWidth int, r rules) string {

textStrings := []string{
"",
fmt.Sprintf("Press R to toggle between Othello and Reversi rules (currently %s)", r),
fmt.Sprintf("Press R to toggle between Othello and Reversi rules\n(currently %s)", r),
"",
"Press any other key to start...",
"",
lipgloss.NewStyle().
Expand Down

0 comments on commit c81d99b

Please sign in to comment.