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 d7e55d3c9..b6eed4356 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 @@ -26,6 +26,10 @@ const StyledShowPageRightContainer = styled.div<{ isMobile: boolean }>` overflow: auto; `; +const StyledTabListContainer = styled.div<{ shouldDisplay: boolean }>` + display: ${({ shouldDisplay }) => (shouldDisplay ? 'flex' : 'none')}; +`; + const StyledTabList = styled(TabList)` padding-left: ${({ theme }) => theme.spacing(2)}; `; @@ -120,7 +124,7 @@ export const ShowPageSubContainer = ({ )} - {visibleTabs.length > 1 && ( + 1}> - )} + {(isMobile || isInRightDrawer) && summaryCard} {renderActiveTabContent()} diff --git a/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx b/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx index 47ae16fee..8378a0400 100644 --- a/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx +++ b/packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx @@ -38,6 +38,10 @@ const StyledContainer = styled.div` user-select: none; `; +const StyledOuterContainer = styled.div` + width: 100%; +`; + export const TabList = ({ tabs, tabListInstanceId, @@ -61,7 +65,7 @@ export const TabList = ({ } return ( -
+ -
+ ); };