Skip to content

The open alternative to Salesforce, designed for AI.

Fix phone input editor sizing (#25406)

Thomas des Francs63da0247af8d
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/PhonesFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/PhonesFieldInput.tsx
index 6fed31bfe36..8151562af85 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/PhonesFieldInput.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/PhonesFieldInput.tsx
@@ -53,11 +53,17 @@ const StyledCustomPhoneInputWrapper = styled.div`
height: 100%;
width: calc(100% - ${themeCssVariables.spacing[8]});
+ .PhoneInput {
+ height: 100%;
+ }
+
.PhoneInputInput {
background: none;
border: none;
+ box-sizing: border-box;
color: ${themeCssVariables.font.color.primary};
- margin-left: ${themeCssVariables.spacing[2]};
+ height: 100%;
+ padding-left: ${themeCssVariables.spacing[2]};
&::placeholder,
&::-webkit-input-placeholder {
@@ -66,7 +72,7 @@ const StyledCustomPhoneInputWrapper = styled.div`
font-weight: ${themeCssVariables.font.weight.medium};
}
- :focus {
+ &:focus {
outline: none;
}
}