Skip to content

The open alternative to Salesforce, designed for AI.

Avoid settings object cover image to be reduced on scroll (#11473)

Thomas Trompette025e50645daa
diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/components/SettingsObjectCoverImage.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/components/SettingsObjectCoverImage.tsx
index 3613d643f49..caf22965df2 100644
--- a/packages/twenty-front/src/modules/settings/data-model/objects/components/SettingsObjectCoverImage.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/objects/components/SettingsObjectCoverImage.tsx
@@ -2,11 +2,11 @@ import styled from '@emotion/styled';
import { SettingsPath } from '@/types/SettingsPath';
import { useLingui } from '@lingui/react/macro';
+import { IconEye } from 'twenty-ui/display';
+import { FloatingButton } from 'twenty-ui/input';
+import { Card } from 'twenty-ui/layout';
import DarkCoverImage from '../../assets/cover-dark.png';
import LightCoverImage from '../../assets/cover-light.png';
-import { Card } from 'twenty-ui/layout';
-import { FloatingButton } from 'twenty-ui/input';
-import { IconEye } from 'twenty-ui/display';
const StyledCoverImageContainer = styled(Card)`
align-items: center;
@@ -18,7 +18,7 @@ const StyledCoverImageContainer = styled(Card)`
border-radius: ${({ theme }) => theme.border.radius.md};
box-sizing: border-box;
display: flex;
- height: 153px;
+ min-height: 153px;
justify-content: center;
position: relative;
margin-bottom: ${({ theme }) => theme.spacing(8)};