From 26a0c429a25d251647c251bdd0931807e8b6d4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Wed, 20 Nov 2024 12:48:09 +0100 Subject: [PATCH] fix: labels for next show --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 04fe561..c2d0005 100644 --- a/main.go +++ b/main.go @@ -235,7 +235,7 @@ func main() { ) nextShowDate.Alignment = fyne.TextAlignCenter - nextShowDate.Wrapping = fyne.TextWrapWord + nextShowDate.Wrapping = fyne.TextWrapOff // Placeholder avatar radioSpiralAvatar := loadImageURL("https://radiospiral.net/wp-content/uploads/2018/03/Radio-Spiral-Logo-1.png") @@ -434,13 +434,12 @@ func main() { } } - host := "" if len(nextShow.Name) > 0 { - host = "by: " + nextShow.Name + host := nextShow.Name date := time.Unix(nextShow.StartTime, 0) dateString := date.Format(time.RFC850) - nextShowLabel.ParseMarkdown("## " + nextShow.Name + " " + host) - nextShowDate.SetText(dateString + " " + host) + nextShowLabel.ParseMarkdown("## " + host) + nextShowDate.SetText(dateString) } else { nextShowLabel.ParseMarkdown("## Spud") nextShowDate.SetText("")