From d972daf2f783d8433bcef3a0b2e1f4b70490fc2f Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 20 Mar 2026 06:01:30 +0000 Subject: [PATCH] appview/pages: prevent workflow names from overflowing Signed-off-by: oppiliappan --- appview/pages/funcmap.go | 2 +- appview/pages/templates/repo/pipelines/workflow.html | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/appview/pages/funcmap.go b/appview/pages/funcmap.go index 3b1f9e4b..1ffe5841 100644 --- a/appview/pages/funcmap.go +++ b/appview/pages/funcmap.go @@ -209,7 +209,7 @@ func (p *Pages) funcMap() template.FuncMap { return fmt.Sprintf("P%dD%dH%dM%dS", days, hours, minutes, seconds) }, "durationFmt": func(duration time.Duration) string { - return durationFmt(duration, [4]string{"d", "hr", "min", "s"}) + return durationFmt(duration, [4]string{"d", "h", "m", "s"}) }, "longDurationFmt": func(duration time.Duration) string { return durationFmt(duration, [4]string{"days", "hours", "minutes", "seconds"}) diff --git a/appview/pages/templates/repo/pipelines/workflow.html b/appview/pages/templates/repo/pipelines/workflow.html index 8e69ba06..a90f9c4f 100644 --- a/appview/pages/templates/repo/pipelines/workflow.html +++ b/appview/pages/templates/repo/pipelines/workflow.html @@ -48,9 +48,13 @@ {{ $lastStatus := $all.Latest }} {{ $kind := $lastStatus.Status.String }} -
- {{ template "repo/pipelines/fragments/workflowSymbol" $all }} - {{ $name }} +
+
+ {{ template "repo/pipelines/fragments/workflowSymbol" $all }} +
+ + {{ $name }} +