This is an automated email from the ASF dual-hosted git repository. mintsweet pushed a commit to branch fix-pipeline-duration in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit bf06299cf4f64d8d37dae1e834e9da10e49a4f5a Author: mintsweet <[email protected]> AuthorDate: Mon Sep 23 14:44:01 2024 +1200 fix: add a space for pipeline duration --- config-ui/src/routes/pipeline/components/duration.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-ui/src/routes/pipeline/components/duration.tsx b/config-ui/src/routes/pipeline/components/duration.tsx index 136b70e5c..4712860f4 100644 --- a/config-ui/src/routes/pipeline/components/duration.tsx +++ b/config-ui/src/routes/pipeline/components/duration.tsx @@ -32,14 +32,14 @@ const duration = (minute: number) => { if (minute < 60 * 24) { const hours = Math.floor(minute / 60); const minutes = minute - hours * 60; - return `${hours}h${minutes !== 0 ? `${minutes}m` : ''}`; + return `${hours}h${minutes !== 0 ? ` ${minutes}m` : ''}`; } const days = Math.floor(minute / (60 * 24)); const hours = Math.floor((minute - days * 60 * 24) / 60); const minutes = minute - days * 60 * 24 - hours * 60; - return `${days}d${hours !== 0 ? `${hours}h` : ''}${minutes !== 0 ? `${minutes}m` : ''}`; + return `${days}d${hours !== 0 ? ` ${hours}h` : ''}${minutes !== 0 ? ` ${minutes}m` : ''}`; }; interface Props {
