]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20532 Move warning message in Github Role mapping
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>
Thu, 28 Sep 2023 15:54:47 +0000 (17:54 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 3 Oct 2023 20:02:47 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/settings/components/authentication/GitHubMappingModal.tsx

index 92700f3ea0391108e319c46ab41e9a500a432c40..e889bcda3a0b6e5ca7510c83503b2ec8f5f2c2f6 100644 (file)
@@ -191,12 +191,7 @@ export default function GitHubMappingModal({ mapping, setMapping, onClose }: Rea
                 />
               ))}
             <tr>
-              <td colSpan={7} className="sw-pt-5 sw-border-t">
-                <Alert variant="info">
-                  {translate(
-                    'settings.authentication.github.configuration.roles_mapping.dialog.custom_roles_description',
-                  )}
-                </Alert>
+              <td colSpan={7} className="sw-pt-2 sw-border-t">
                 <form
                   className="sw-flex sw-h-9 sw-items-center"
                   onSubmit={validateAndAddCustomRole}
@@ -242,6 +237,13 @@ export default function GitHubMappingModal({ mapping, setMapping, onClose }: Rea
           </tbody>
         </table>
         <Spinner loading={isLoading} />
+        <div className="sw-bg-white sw-bottom-0 sw-sticky">
+          <Alert variant="info" className="sw-m-2">
+            {translate(
+              'settings.authentication.github.configuration.roles_mapping.dialog.custom_roles_description',
+            )}
+          </Alert>
+        </div>
       </div>
       <div className="modal-foot">
         <div className="sw-flex sw-items-center sw-justify-end sw-h-8">