Skip to content

The open alternative to Salesforce, designed for AI.

Side panel tablist fix (#10904)

nitin1bc30e9b210e
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 b6eed43567e..d7e55d3c901 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,10 +26,6 @@ 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)};
`;
@@ -124,7 +120,7 @@ export const ShowPageSubContainer = ({
</ShowPageLeftContainer>
)}
<StyledShowPageRightContainer isMobile={isMobile}>
- <StyledTabListContainer shouldDisplay={visibleTabs.length > 1}>
+ {visibleTabs.length > 1 && (
<StyledTabList
behaveAsLinks={!isInRightDrawer}
loading={loading || isNewViewableRecordLoading}
@@ -132,7 +128,7 @@ export const ShowPageSubContainer = ({
tabs={tabs}
isInRightDrawer={isInRightDrawer}
/>
- </StyledTabListContainer>
+ )}
{(isMobile || isInRightDrawer) && summaryCard}
<StyledContentContainer isInRightDrawer={isInRightDrawer}>
{renderActiveTabContent()}