From: Vik Vorona Date: Wed, 24 May 2023 07:22:55 +0000 (+0200) Subject: SONAR-19146 Fix 'dancing' scrollbars in presence of a spinner (#8330) X-Git-Tag: 10.1.0.73491~233 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=daabab60cd13a1b42457869af0523d96d6eb6b6a;p=sonarqube.git SONAR-19146 Fix 'dancing' scrollbars in presence of a spinner (#8330) --- diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Checkbox-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Checkbox-test.tsx.snap index ea68408df35..ae3c407b7bd 100644 --- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Checkbox-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Checkbox-test.tsx.snap @@ -39,11 +39,15 @@ exports[`should render the checkbox on the right 1`] = ` child - +
+ +
diff --git a/server/sonar-web/src/main/js/components/ui/DeferredSpinner.tsx b/server/sonar-web/src/main/js/components/ui/DeferredSpinner.tsx index 5b9b8550be9..e619906e2ff 100644 --- a/server/sonar-web/src/main/js/components/ui/DeferredSpinner.tsx +++ b/server/sonar-web/src/main/js/components/ui/DeferredSpinner.tsx @@ -92,16 +92,18 @@ export default class DeferredSpinner extends React.PureComponent { return ( <> - - {showSpinner && {ariaLabel}} - +
+ + {showSpinner && {ariaLabel}} + +
{!showSpinner && children} );