Skip to content

The open alternative to Salesforce, designed for AI.

Stop the welcome title overflowing on mobile (#24183)

Félix Malfaitf296cf2079c3
diff --git a/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomeOverlay.tsx b/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomeOverlay.tsx
index dec8109d0f1..8517934e244 100644
--- a/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomeOverlay.tsx
+++ b/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomeOverlay.tsx
@@ -91,7 +91,9 @@ const StyledTitle = styled.div`
@media (max-width: 600px) {
flex-wrap: wrap;
+ font-size: 20px;
max-width: 90vw;
+ padding: ${themeCssVariables.spacing[4]} ${themeCssVariables.spacing[2]};
}
&.is-leaving {
@@ -144,8 +146,10 @@ const StyledTitle = styled.div`
const StyledTitleBoldRun = styled.span`
align-items: center;
display: inline-flex;
+ flex-wrap: wrap;
gap: ${themeCssVariables.spacing[2]};
- white-space: nowrap;
+ justify-content: center;
+ white-space: normal;
.is-flying & {
animation: welcomeTitleBoldRunOut 0.38s ease 0.12s forwards;
diff --git a/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomePersonChip.tsx b/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomePersonChip.tsx
index 6cf1582c22e..4f4888e7450 100644
--- a/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomePersonChip.tsx
+++ b/packages/twenty-front/src/modules/onboarding/components/WelcomeOverlay/WelcomePersonChip.tsx
@@ -28,6 +28,10 @@ const StyledPersonName = styled.span`
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+
+ @media (max-width: 600px) {
+ max-width: min(70vw, 360px);
+ }
`;
type WelcomePersonChipProps = {