From 706aa8e6ba850d7981bf01acdd8e9dd6655b17d3 Mon Sep 17 00:00:00 2001 From: mixeme Date: Sun, 26 Jul 2026 22:21:58 +0300 Subject: [PATCH] refactor: truncate job names via the non-deprecated Truncation field fyne.TextTruncate is deprecated in Fyne 2.7.4 in favour of the widget's Truncation field. Behaviour is unchanged: a long job name is clipped rather than widening the row, which is what keeps the compact row's status pinned to the right-hand edge. Co-Authored-By: Claude Opus 5 --- src/ui/jobs_view.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/jobs_view.go b/src/ui/jobs_view.go index 97ef7be..1d0e823 100644 --- a/src/ui/jobs_view.go +++ b/src/ui/jobs_view.go @@ -128,8 +128,9 @@ func newJobsView(w fyne.Window, svc *app.Service) (fyne.CanvasObject, func()) { func() fyne.CanvasObject { name := widget.NewLabelWithStyle("Job name", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}) // Truncating stops a long name from pushing the compact row's status - // off the right-hand edge. - name.Wrapping = fyne.TextTruncate + // off the right-hand edge. Labels default to TextWrapOff, which grows + // the widget to fit instead. + name.Truncation = fyne.TextTruncateClip inlineStatus := widget.NewLabel("status") meta := widget.NewLabel("schedule") status := widget.NewLabel("status")