+
{!!selectedOption?.Icon && (
({
);
- return disabled ? (
-
+ return (
+
{!!label && {label}}
- {selectControl}
-
- ) : (
-
- {!!label && {label}}
-
- {!!withSearchInput && (
- setSearchInputValue(event.target.value)}
- />
- )}
- {!!withSearchInput && !!filteredOptions.length && (
-
- )}
- {!!filteredOptions.length && (
-
- {filteredOptions.map((option) => (
-
- )}
- >
- }
- dropdownHotkeyScope={{ scope: SelectHotkeyScope.Select }}
- />
-
+ {disabled ? (
+ selectControl
+ ) : (
+
+ {!!withSearchInput && (
+ setSearchInputValue(event.target.value)}
+ />
+ )}
+ {!!withSearchInput && !!filteredOptions.length && (
+
+ )}
+ {!!filteredOptions.length && (
+
+ {filteredOptions.map((option) => (
+
+ )}
+ >
+ }
+ dropdownHotkeyScope={{ scope: SelectHotkeyScope.Select }}
+ />
+ )}
+
);
};
diff --git a/packages/twenty-front/src/modules/ui/layout/card/components/Card.tsx b/packages/twenty-front/src/modules/ui/layout/card/components/Card.tsx
index 1cf4e4abd..de5d724dd 100644
--- a/packages/twenty-front/src/modules/ui/layout/card/components/Card.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/card/components/Card.tsx
@@ -1,10 +1,11 @@
import styled from '@emotion/styled';
-const StyledCard = styled.div`
+const StyledCard = styled.div<{ fullWidth?: boolean }>`
border: 1px solid ${({ theme }) => theme.border.color.medium};
border-radius: ${({ theme }) => theme.border.radius.sm};
color: ${({ theme }) => theme.font.color.secondary};
overflow: hidden;
+ width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};
`;
export { StyledCard as Card };
diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectEdit.tsx
index 77e920d13..3963c5774 100644
--- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectEdit.tsx
+++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectEdit.tsx
@@ -7,6 +7,7 @@ import { SaveAndCancelButtons } from '@/settings/components/SaveAndCancelButtons
import { SettingsHeaderContainer } from '@/settings/components/SettingsHeaderContainer';
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
import { SettingsObjectFormSection } from '@/settings/data-model/components/SettingsObjectFormSection';
+import { SettingsDataModelObjectSettingsFormCard } from '@/settings/data-model/objects/forms/components/SettingsDataModelObjectSettingsFormCard';
import { AppPath } from '@/types/AppPath';
import { IconArchive, IconSettings } from '@/ui/display/icon';
import { H2Title } from '@/ui/display/typography/components/H2Title';
@@ -125,6 +126,15 @@ export const SettingsObjectEdit = () => {
}))
}
/>
+