on main help sign in
fix(main): don't use JoinVertical to avoid inserting unnecessary spaces
commit2c0d70cbccaaf83a05cbec86e8a686256ae853b2 authorAyman Bagabas <ayman.bagabas@gmail.com> dateMon 21 Jul 2025, 17:07 (1 year ago) parent976bd44
1 file changed+4−3
main.go+4−3
main.go+4−3
@@ -6,6 +6,7 @@ import (
66 "net/http"
77 "os"
88 "runtime"
9+ "strings"
910
1011 _ "net/http/pprof" // profiling
1112
@@ -38,11 +39,11 @@ func main() {
3839}
3940
4041func showWindowsWarning() {
41− content := lipgloss.JoinVertical(lipgloss.Left,
42− lipgloss.NewStyle().Bold(true).Render("WARNING:")+" Crush is experimental on Windows!",
42+ content := strings.Join([]string{
43+ lipgloss.NewStyle().Bold(true).Render("WARNING:") + " Crush is experimental on Windows!",
4344 "While we work on it, we recommend WSL2 for a better experience.",
4445 lipgloss.NewStyle().Italic(true).Render("Press Enter to continue..."),
45− )
46+ }, "\n")
4647 fmt.Print(content)
4748
4849 var input string