From 1bc30e9b210ea7b6ccfaf7d3e525c46991093492 Mon Sep 17 00:00:00 2001
From: nitin <142569587+ehconitin@users.noreply.github.com>
Date: Fri, 14 Mar 2025 23:02:46 +0530
Subject: [PATCH] Side panel tablist fix (#10904)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
followup #10832
whats wrong? -- in "before" screen grabs, the light bottom border
doesn't go all the way!
fix -- removed the redundant div :)
(╯°□°)╯︵ ┻━┻
before:
after:
---
.../layout/show-page/components/ShowPageSubContainer.tsx | 8 ++------
1 file changed, 2 insertions(+), 6 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 b6eed4356..d7e55d3c9 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 = ({
)}
- 1}>
+ {visibleTabs.length > 1 && (
-
+ )}
{(isMobile || isInRightDrawer) && summaryCard}
{renderActiveTabContent()}