Fix pipeline duration display when equal to 0
What does this MR do and why?
This fixes a problem in which a pipeline with duration of 0 seconds had no duration displayed in the pipelines list.
It also refactors the layout of the duration to simplify it (and so it doesn't depend on media queries).
Changelog: fixed
Why now?
While working on https://gitlab.com/gitlab-org/gitlab/-/issues/566956, I found I could simplify some code (and fix the duration == 0 bug).
References
NA
Screenshots or screen recordings
I changed the layout classes, but I expect no differences:
| Before | After |
|---|---|
![]() |
![]() |
|
|
How to set up and validate locally
- Visit the pipelines list
- Filter by finished pipelines
- Confirm the pipeline are shown in both mobile and desktop views
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Miguel Rincon



