From 0bf2d13832134bc2215e408138dd4a17fafdd6fc Mon Sep 17 00:00:00 2001 From: Baptiste Devessier Date: Tue, 25 Nov 2025 18:04:56 +0100 Subject: [PATCH] [Side Panel V2] Bring back old container (#16065) ## Before image ## After CleanShot 2025-11-25 at 17 35
59@2x --- .../components/ShowPageSubContainer.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx index 6703775c92..9d1c6b3860 100644 --- a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx +++ b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSubContainer.tsx @@ -45,23 +45,12 @@ const StyledTabList = styled(TabList)` padding-left: ${({ theme }) => theme.spacing(2)}; `; -const StyledContentContainer = styled.div<{ - isInRightDrawer: boolean; -}>` - background: ${({ theme, isInRightDrawer }) => - isInRightDrawer ? theme.background.secondary : theme.background.primary}; - border: ${({ theme, isInRightDrawer }) => - isInRightDrawer ? `1px solid ${theme.border.color.light}` : 'none'}; - border-radius: ${({ theme, isInRightDrawer }) => - isInRightDrawer ? theme.border.radius.md : '0'}; +const StyledContentContainer = styled.div<{ isInRightDrawer: boolean }>` flex: 1; - margin: ${({ theme, isInRightDrawer }) => - isInRightDrawer ? theme.spacing(3) : '0'}; overflow-y: auto; - - .scroll-wrapper-y-enabled { - height: auto; - } + background: ${({ theme }) => theme.background.primary}; + padding-bottom: ${({ theme, isInRightDrawer }) => + isInRightDrawer ? theme.spacing(16) : 0}; `; type ShowPageSubContainerProps = {