From 025e50645daaf7a5faff39b7043d50a063200aa0 Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Wed, 9 Apr 2025 16:43:25 +0200 Subject: [PATCH] Avoid settings object cover image to be reduced on scroll (#11473) Fix https://github.com/twentyhq/twenty/issues/11420 --- .../objects/components/SettingsObjectCoverImage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 3613d643f..caf22965d 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)};