From 9c84c422d07c068fa91d5a605427760a52bbbec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 23 Sep 2025 11:37:15 +0100 Subject: [PATCH] chore: set min height in release template dialog --- .../ReleasePlan/ReleasePlanReviewDialog.tsx | 60 +++++++++++-------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanReviewDialog.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanReviewDialog.tsx index 5f738842e2..7ad9abc340 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanReviewDialog.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanReviewDialog.tsx @@ -19,10 +19,17 @@ import CloseIcon from '@mui/icons-material/Close'; const StyledDialog = styled(Dialog)(({ theme }) => ({ '& .MuiDialog-paper': { borderRadius: theme.shape.borderRadiusLarge, - width: theme.breakpoints.values.md, }, })); +const StyledScrollableContent = styled(Box)(({ theme }) => ({ + width: theme.breakpoints.values.md, + minHeight: '318px', + overflowY: 'auto', + display: 'flex', + flexDirection: 'column', +})); + const StyledHeader = styled(Box)(({ theme }) => ({ display: 'flex', justifyContent: 'space-between', @@ -104,30 +111,35 @@ export const ReleasePlanReviewDialog = ({ Go back - {activeReleasePlan && ( - - - This feature environment currently has{' '} - {activeReleasePlan.name} -{' '} - {activeReleasePlan.milestones[0].name} - {environmentEnabled ? ' running' : ' paused'}. Adding a - new release plan will replace the existing release plan. - + + {activeReleasePlan && ( + + + This feature environment currently has{' '} + {activeReleasePlan.name} -{' '} + + {activeReleasePlan.milestones[0].name} + + {environmentEnabled ? ' running' : ' paused'}. + Adding a new release plan will replace the existing + release plan. + + + )} + + - )} - - - - {crProtected && ( - - - Adding release template{' '} - {template?.name} to{' '} - {featureName} in{' '} - {environment}. - - - )} + {crProtected && ( + + + Adding release template{' '} + {template?.name} to{' '} + {featureName} in{' '} + {environment}. + + + )} +