From 741020fbb032e25dcbf362a99fc64fc4bb183fd5 Mon Sep 17 00:00:00 2001 From: Marie <51697796+ijreilly@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:36:03 +0100 Subject: [PATCH] Fix gap in object edition page (#8310) Fixing ![image](https://github.com/user-attachments/assets/794968c2-1d13-49f2-9367-e93285a7d10f) Note - this page design be updated in the next release (https://github.com/twentyhq/twenty/pull/7979) --- .../SettingsDataModelObjectAboutForm.tsx | 137 +++++++++--------- 1 file changed, 66 insertions(+), 71 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx index aed21d0ee..9e59ff4a4 100644 --- a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx @@ -63,10 +63,6 @@ const StyledInputContainer = styled.div` flex-direction: column; `; -const StyledSectionWrapper = styled.div` - margin-bottom: ${({ theme }) => theme.spacing(4)}; -`; - const StyledAdvancedSettingsSectionInputWrapper = styled.div` display: flex; flex-direction: column; @@ -76,9 +72,10 @@ const StyledAdvancedSettingsSectionInputWrapper = styled.div` const StyledAdvancedSettingsContainer = styled.div` display: flex; - width: 100%; gap: ${({ theme }) => theme.spacing(2)}; + padding-top: ${({ theme }) => theme.spacing(4)}; position: relative; + width: 100%; `; const StyledIconToolContainer = styled.div` @@ -154,84 +151,82 @@ export const SettingsDataModelObjectAboutForm = ({ return ( <> - - - - Icon - ( - onChange(iconKey)} - /> - )} - /> - + + + Icon ( - { - onChange(value); - fillLabelPlural(value); - if (isLabelSyncedWithName === true) { - fillNameSingularFromLabelSingular(value); - } - }} - disabled={disabled || disableNameEdit} - fullWidth - maxLength={OBJECT_NAME_MAXIMUM_LENGTH} + onChange(iconKey)} /> )} /> - ( - { - onChange(value); - if (isLabelSyncedWithName === true) { - fillNamePluralFromLabelPlural(value); - } - }} - disabled={disabled || disableNameEdit} - fullWidth - maxLength={OBJECT_NAME_MAXIMUM_LENGTH} - /> - )} - /> - + ( -