satof3 2 лет назад
Родитель
Сommit
5d4576d6b1
2 измененных файлов с 9 добавлено и 4 удалено
  1. 4 4
      apps/app/src/components/LoginForm.tsx
  2. 5 0
      apps/app/src/pages/login/index.module.scss

+ 4 - 4
apps/app/src/components/LoginForm.tsx

@@ -282,7 +282,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
 
 
     return (
     return (
       <div key={auth} className="my-2">
       <div key={auth} className="my-2">
-        <button type="button" className="btn btn-fill col-6 mx-auto" id={auth} onClick={handleLoginWithExternalAuth}>
+        <button type="button" className="btn btn-fill col-10 col-sm-6 mx-auto" id={auth} onClick={handleLoginWithExternalAuth}>
           <span className="btn-label pe-0">
           <span className="btn-label pe-0">
             <i className={`fa fa-${authIconNames[auth]}`}></i>
             <i className={`fa fa-${authIconNames[auth]}`}></i>
           </span>
           </span>
@@ -521,7 +521,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
             <button
             <button
               type="button"
               type="button"
               id="function"
               id="function"
-              className="d-block btn btn-fill col-9 mx-auto py-1"
+              className="d-block btn btn-fill col-10 col-sm-9 mx-auto py-1"
               style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
               style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
               onClick={() => { switchForm(); window.location.href = '#login' }}
               onClick={() => { switchForm(); window.location.href = '#login' }}
             >
             >
@@ -554,7 +554,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
                     <button
                     <button
                       type="button"
                       type="button"
                       id="function"
                       id="function"
-                      className="d-block btn btn-fill col-9 mx-auto py-1"
+                      className="d-block btn btn-fill col-10 col-sm-9 mx-auto py-1"
                       style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
                       style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
                       onClick={() => { window.location.href = '/forgot-password' }}
                       onClick={() => { window.location.href = '/forgot-password' }}
                     >
                     >
@@ -568,7 +568,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
                     <button
                     <button
                       type="button"
                       type="button"
                       id="function"
                       id="function"
-                      className="d-block btn btn-fill col-9 mx-auto py-1"
+                      className="d-block btn btn-fill col-10 col-sm-9 mx-auto py-1"
                       style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
                       style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
                       onClick={() => { switchForm(); window.location.href = '#register' }}
                       onClick={() => { switchForm(); window.location.href = '#register' }}
                     >
                     >

+ 5 - 0
apps/app/src/pages/login/index.module.scss

@@ -1,9 +1,14 @@
+@use '@growi/core/scss/bootstrap/init' as bs;
+
 // layout
 // layout
 .login-page :global {
 .login-page :global {
 
 
   .nologin-header,
   .nologin-header,
   .nologin-dialog {
   .nologin-dialog {
     width: 420px;
     width: 420px;
+    @include bs.media-breakpoint-down(sm) {
+      width: 320px;
+    }
   }
   }
 
 
 }
 }