From 779e613df39b68334d03506eaa87faef2d94729e Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Thu, 2 Apr 2026 17:43:35 +0200 Subject: [PATCH] Fixes: relation settings design + workflow input border (#19269) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before Capture d’écran 2026-04-02 à 15 57
06 Capture d’écran 2026-04-02 à 15 57
22 After Capture d’écran 2026-04-02 à 15 56
38 Capture d’écran 2026-04-02 à 15 56
58 --- .../components/FormNumberFieldInput.tsx | 40 ++++++------------- .../components/FormUuidFieldInput.tsx | 28 +++++-------- ...DataModelRelationFieldPreviewSubWidget.tsx | 4 +- 3 files changed, 25 insertions(+), 47 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormNumberFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormNumberFieldInput.tsx index 0cc37da78c..979732eafd 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormNumberFieldInput.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/form-types/components/FormNumberFieldInput.tsx @@ -1,4 +1,3 @@ -import { t } from '@lingui/core/macro'; import { FormFieldInputContainer } from '@/object-record/record-field/ui/form-types/components/FormFieldInputContainer'; import { FormFieldInputInnerContainer } from '@/object-record/record-field/ui/form-types/components/FormFieldInputInnerContainer'; import { FormFieldInputRowContainer } from '@/object-record/record-field/ui/form-types/components/FormFieldInputRowContainer'; @@ -8,26 +7,15 @@ import { TextInput } from '@/ui/field/input/components/TextInput'; import { InputHint } from '@/ui/input/components/InputHint'; import { InputLabel } from '@/ui/input/components/InputLabel'; import { isStandaloneVariableString } from '@/workflow/utils/isStandaloneVariableString'; +import { t } from '@lingui/core/macro'; import isEmpty from 'lodash.isempty'; import { useId, useState } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { themeCssVariables } from 'twenty-ui/theme-constants'; import { canBeCastAsNumberOrNull, castAsNumberOrNull, } from '~/utils/cast-as-number-or-null'; -import { styled } from '@linaria/react'; - -const StyledInputWrapper = styled.div` - align-items: center; - display: flex; - - & input { - padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]}; - } -`; - type FormNumberFieldInputProps = { label?: string; defaultValue: number | string | undefined; @@ -120,20 +108,18 @@ export const FormNumberFieldInput = ({ onBlur={onBlur} > {draftValue.type === 'static' ? ( - - - + ) : ( {draftValue.type === 'static' ? ( - - - + ) : ( * { border-radius: ${themeCssVariables.border.radius.md};