ui/jobs_view: render job logs as compact one-line entries (T1.2)
Switch the jobLogs list template to TextTruncate wrapping and use EventLine (base log filename only) instead of EventText so each activity row stays on a single line in the jobs panel. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-2
@@ -77,9 +77,13 @@ func newJobsView(w fyne.Window, svc *app.Service) (fyne.CanvasObject, func()) {
|
|||||||
selectedLogs := append([]event(nil), selectedRuntime.Logs...)
|
selectedLogs := append([]event(nil), selectedRuntime.Logs...)
|
||||||
jobLogs := widget.NewList(
|
jobLogs := widget.NewList(
|
||||||
func() int { return len(selectedLogs) },
|
func() int { return len(selectedLogs) },
|
||||||
func() fyne.CanvasObject { return widget.NewLabel("log") },
|
func() fyne.CanvasObject {
|
||||||
|
l := widget.NewLabel("log")
|
||||||
|
l.Wrapping = fyne.TextTruncate
|
||||||
|
return l
|
||||||
|
},
|
||||||
func(id widget.ListItemID, item fyne.CanvasObject) {
|
func(id widget.ListItemID, item fyne.CanvasObject) {
|
||||||
item.(*widget.Label).SetText(app.EventText(selectedLogs[id]))
|
item.(*widget.Label).SetText(app.EventLine(selectedLogs[id]))
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user