Monorepo for Tangled tangled.org

appview/pages: prevent workflow names from overflowing

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li d972daf2 7dd6bccc

verified
+8 -4
+1 -1
appview/pages/funcmap.go
··· 209 209 return fmt.Sprintf("P%dD%dH%dM%dS", days, hours, minutes, seconds) 210 210 }, 211 211 "durationFmt": func(duration time.Duration) string { 212 - return durationFmt(duration, [4]string{"d", "hr", "min", "s"}) 212 + return durationFmt(duration, [4]string{"d", "h", "m", "s"}) 213 213 }, 214 214 "longDurationFmt": func(duration time.Duration) string { 215 215 return durationFmt(duration, [4]string{"days", "hours", "minutes", "seconds"})
+7 -3
appview/pages/templates/repo/pipelines/workflow.html
··· 48 48 {{ $lastStatus := $all.Latest }} 49 49 {{ $kind := $lastStatus.Status.String }} 50 50 51 - <div id="left" class="flex items-center gap-2 flex-shrink-0"> 52 - {{ template "repo/pipelines/fragments/workflowSymbol" $all }} 53 - {{ $name }} 51 + <div id="left" class="flex items-center gap-2 flex-1 min-w-0"> 52 + <div class="flex-shrink-0"> 53 + {{ template "repo/pipelines/fragments/workflowSymbol" $all }} 54 + </div> 55 + <span class="truncate" title="{{ $name }}"> 56 + {{ $name }} 57 + </span> 54 58 </div> 55 59 <div id="right" class="flex items-center gap-2 flex-shrink-0"> 56 60 <span class="font-bold">{{ $kind }}</span>