Fix save button not well positioned (#9740)

Regression I introduced with the translations
This commit is contained in:
Félix Malfait
2025-01-20 15:02:23 +01:00
committed by GitHub
parent 59cb420d82
commit feac6861f1
20 changed files with 216 additions and 213 deletions

View File

@ -2,6 +2,7 @@ import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { SettingsObjectFieldTable } from '~/pages/settings/data-model/SettingsObjectFieldTable';
import styled from '@emotion/styled';
import { useLingui } from '@lingui/react/macro';
import { Button, H2Title, IconPlus, Section, UndecoratedLink } from 'twenty-ui';
const StyledDiv = styled.div`
@ -17,11 +18,14 @@ type ObjectFieldsProps = {
export const ObjectFields = ({ objectMetadataItem }: ObjectFieldsProps) => {
const shouldDisplayAddFieldButton = !objectMetadataItem.isRemote;
const { t } = useLingui();
const objectLabelSingular = objectMetadataItem.labelSingular;
return (
<Section>
<H2Title
title="Fields"
description={`Customise the fields available in the ${objectMetadataItem.labelSingular} views and their display order in the ${objectMetadataItem.labelSingular} detail view and menus.`}
title={t`Fields`}
description={t`Customise the fields available in the ${objectLabelSingular} views.`}
/>
<SettingsObjectFieldTable
objectMetadataItem={objectMetadataItem}
@ -32,7 +36,7 @@ export const ObjectFields = ({ objectMetadataItem }: ObjectFieldsProps) => {
<UndecoratedLink to={'./new-field/select'}>
<Button
Icon={IconPlus}
title="Add Field"
title={t`Add Field`}
size="small"
variant="secondary"
/>