From acb6b2e854f7538692b28b0cf92d70cc62404399 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Tue, 5 Dec 2023 16:00:56 +0100 Subject: [PATCH] SONAR-21104 Allow scrolling for rule activation modal --- .../apps/coding-rules/components/ActivationFormModal.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx index 01771fdf72a..048795a0195 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx @@ -92,12 +92,15 @@ export default function ActivationFormModal(props: Readonly) { setParams({ ...params, [name]: value }); }; + const makeScrollable = (rule.params?.length ?? 0) > 1; + return ( {isUpdateMode ? translate('save') : translate('coding_rules.activate')} @@ -105,7 +108,7 @@ export default function ActivationFormModal(props: Readonly) { } secondaryButtonLabel={translate('cancel')} body={ -
+ {!isUpdateMode && activeInAllProfiles && ( {translate('coding_rules.active_in_all_profiles')} -- 2.39.5