diff --git a/frontend/src/component/project/Project/ProjectStatus/ProjectLifecycleSummary.tsx b/frontend/src/component/project/Project/ProjectStatus/ProjectLifecycleSummary.tsx
index 3a2b9142ac..ecf58ea9b1 100644
--- a/frontend/src/component/project/Project/ProjectStatus/ProjectLifecycleSummary.tsx
+++ b/frontend/src/component/project/Project/ProjectStatus/ProjectLifecycleSummary.tsx
@@ -5,12 +5,12 @@ import useLoading from 'hooks/useLoading';
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
import type { FC } from 'react';
import { PrettifyLargeNumber } from 'component/common/PrettifyLargeNumber/PrettifyLargeNumber';
+import type { ProjectStatusSchemaLifecycleSummary } from 'openapi';
const LifecycleBox = styled('li')(({ theme }) => ({
padding: theme.spacing(2),
borderRadius: theme.shape.borderRadiusExtraLarge,
border: `2px solid ${theme.palette.divider}`,
- width: '180px',
- height: '175px',
+ gap: theme.spacing(4),
display: 'flex',
flexFlow: 'column',
justifyContent: 'space-between',
@@ -19,9 +19,10 @@ const LifecycleBox = styled('li')(({ theme }) => ({
const Wrapper = styled('ul')(({ theme }) => ({
display: 'grid',
listStyle: 'none',
- gridTemplateColumns: 'repeat(auto-fit, 180px)',
+ gridTemplateColumns: 'repeat(auto-fit, minmax(180px, 1fr))',
gap: theme.spacing(1),
justifyContent: 'center',
+ padding: 0,
}));
const Counter = styled('span')({
@@ -90,6 +91,13 @@ export const ProjectLifecycleSummary = () => {
loading,
'[data-loading-project-lifecycle-summary=true]',
);
+ const flagWord = (stage: keyof ProjectStatusSchemaLifecycleSummary) => {
+ if (data?.lifecycleSummary[stage].currentFlags === 1) {
+ return 'flag';
+ } else {
+ return 'flags';
+ }
+ };
return (