From 4a8234d18c5b0c3ffa6d0c6d83812c0564948632 Mon Sep 17 00:00:00 2001 From: Guillim Date: Tue, 19 Nov 2024 12:47:33 +0100 Subject: [PATCH] Feature 7552 patch (#8574) Related to #7552 Screenshot 2024-11-18 at 17 57 30 --------- Co-authored-by: guillim --- .../text/SettingsDataModelFieldTextForm.tsx | 104 ++++++++---------- .../display/icon/components/TablerIcons.ts | 1 + 2 files changed, 48 insertions(+), 57 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/text/SettingsDataModelFieldTextForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/text/SettingsDataModelFieldTextForm.tsx index 2c10f1f1f2..4d67880825 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/text/SettingsDataModelFieldTextForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/text/SettingsDataModelFieldTextForm.tsx @@ -1,18 +1,10 @@ import { Controller, useFormContext } from 'react-hook-form'; import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; -import { Select } from '@/ui/input/components/Select'; -import styled from '@emotion/styled'; -import { CardContent } from 'twenty-ui'; +import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect'; +import { IconTextWrap } from 'twenty-ui'; import { z } from 'zod'; -const StyledFormCardTitle = styled.div` - color: ${({ theme }) => theme.font.color.light}; - font-size: ${({ theme }) => theme.font.size.xs}; - font-weight: ${({ theme }) => theme.font.weight.semiBold}; - margin-bottom: ${({ theme }) => theme.spacing(1)}; -`; - type SettingsDataModelFieldTextFormProps = { disabled?: boolean; fieldMetadataItem: Pick< @@ -39,53 +31,51 @@ export const SettingsDataModelFieldTextForm = ({ }: SettingsDataModelFieldTextFormProps) => { const { control } = useFormContext(); return ( - - { - const displayedMaxRows = value?.displayedMaxRows ?? 0; + { + const displayedMaxRows = value?.displayedMaxRows ?? 0; - return ( - <> - Wrap on record pages -