The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix shrinked horizontal separator (#9192)
Baptiste Devessiere1c99beaa4cb
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.tsxindex 60e361538ad..775667c8056 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@@ -106,7 +106,7 @@ export const SignInUpGlobalScopeForm = () => {{authProviders.google && <SignInUpWithGoogle />}{authProviders.microsoft && <SignInUpWithMicrosoft />}{(authProviders.google || authProviders.microsoft) && (- <HorizontalSeparator visible />+ <HorizontalSeparator />)}{/* eslint-disable-next-line react/jsx-props-no-spreading */}<FormProvider {...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.tsxindex 26120c87493..17f46f954e5 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@@ -37,7 +37,7 @@ export const SignInUpWorkspaceScopeForm = () => {workspaceAuthProviders.microsoft ||workspaceAuthProviders.sso.length > 0) &&workspaceAuthProviders.password ? (- <HorizontalSeparator visible />+ <HorizontalSeparator />) : null}{workspaceAuthProviders.password && <SignInUpWithCredentials />}diff --git a/packages/twenty-front/src/modules/settings/security/components/SettingsSSOSAMLForm.tsx b/packages/twenty-front/src/modules/settings/security/components/SettingsSSOSAMLForm.tsxindex 2f39960f000..cf6d5b2f9a6 100644--- a/packages/twenty-front/src/modules/settings/security/components/SettingsSSOSAMLForm.tsx+++ b/packages/twenty-front/src/modules/settings/security/components/SettingsSSOSAMLForm.tsx@@ -1,23 +1,23 @@/* @license Enterprise */+import { parseSAMLMetadataFromXMLFile } from '@/settings/security/utils/parseSAMLMetadataFromXMLFile';+import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar';+import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';+import { TextInput } from '@/ui/input/components/TextInput';+import { useTheme } from '@emotion/react';+import styled from '@emotion/styled';+import { ChangeEvent, useRef } from 'react';+import { useFormContext } from 'react-hook-form';import {- HorizontalSeparator,Button,H2Title,+ HorizontalSeparator,IconCheck,IconCopy,IconDownload,IconUpload,Section,} from 'twenty-ui';-import { parseSAMLMetadataFromXMLFile } from '@/settings/security/utils/parseSAMLMetadataFromXMLFile';-import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar';-import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';-import { TextInput } from '@/ui/input/components/TextInput';-import { useTheme } from '@emotion/react';-import styled from '@emotion/styled';-import { ChangeEvent, useRef } from 'react';-import { useFormContext } from 'react-hook-form';import { REACT_APP_SERVER_BASE_URL } from '~/config';import { isDefined } from '~/utils/isDefined';@@ -156,7 +156,7 @@ export const SettingsSSOSAMLForm = () => {title="Download file"></Button></StyledContainer>- <HorizontalSeparator visible={true} text={'Or'} />+ <HorizontalSeparator text={'Or'} /><StyledContainer><StyledLinkContainer><TextInputdiff --git a/packages/twenty-ui/src/display/text/components/HorizontalSeparator.tsx b/packages/twenty-ui/src/display/text/components/HorizontalSeparator.tsxindex 52c00f92464..d40ced426ad 100644--- a/packages/twenty-ui/src/display/text/components/HorizontalSeparator.tsx+++ b/packages/twenty-ui/src/display/text/components/HorizontalSeparator.tsx@@ -10,6 +10,7 @@ type HorizontalSeparatorProps = {const StyledSeparator = styled.div<HorizontalSeparatorProps>`background-color: ${({ theme, color }) => color ?? theme.border.color.medium};height: ${({ visible }) => (visible ? '1px' : 0)};+ flex-shrink: 0;margin-bottom: ${({ theme, noMargin }) => (noMargin ? 0 : theme.spacing(3))};margin-top: ${({ theme, noMargin }) => (noMargin ? 0 : theme.spacing(3))};width: 100%;