From 41674129c3fb4891ee016582e91413be6f4aa151 Mon Sep 17 00:00:00 2001 From: Weiko Date: Thu, 10 Apr 2025 13:51:21 +0200 Subject: [PATCH] Fix sign-in-up sso buttons width (#11499) ## Context An enforced width was introduced recently for error texts but broke Microsoft sso placement due to its longer text. I've replaced it by a min-width and introduced the missing one in global signin/up. Before Screenshot 2025-04-10 at 12 14 51 After Screenshot 2025-04-10 at 12 14 17 --- .../auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx | 3 ++- .../auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx index bbdb6578f..8d9baac22 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx +++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx @@ -25,15 +25,16 @@ import { authProvidersState } from '@/client-config/states/authProvidersState'; import { useRedirectToWorkspaceDomain } from '@/domain-manager/hooks/useRedirectToWorkspaceDomain'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; -import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; import { isDefined } from 'twenty-shared/utils'; import { HorizontalSeparator } from 'twenty-ui/display'; import { Loader } from 'twenty-ui/feedback'; import { MainButton } from 'twenty-ui/input'; +import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; const StyledContentContainer = styled(motion.div)` margin-bottom: ${({ theme }) => theme.spacing(8)}; margin-top: ${({ theme }) => theme.spacing(4)}; + min-width: 200px; `; const StyledForm = styled.form` diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx index bdad35cde..411bc6efc 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx +++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx @@ -17,7 +17,7 @@ import { ClickToActionLink } from 'twenty-ui/navigation'; const StyledContentContainer = styled.div` margin-bottom: ${({ theme }) => theme.spacing(8)}; margin-top: ${({ theme }) => theme.spacing(4)}; - width: 200px; + min-width: 200px; `; export const SignInUpWorkspaceScopeForm = () => {