Skip to content

Commit 444cd3f

Browse files
fix: overflow issue in tableSection (#7377)
this PR fixes #7327 --------- Co-authored-by: ehconitin <[email protected]>
1 parent a8da0e2 commit 444cd3f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/twenty-front/src/modules/ui/layout/table/components/TableSection.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { ReactNode, useState } from 'react';
21
import { useTheme } from '@emotion/react';
32
import styled from '@emotion/styled';
3+
import { ReactNode, useState } from 'react';
44
import { IconChevronDown, IconChevronUp } from 'twenty-ui';
5-
65
import { TableBody } from './TableBody';
76

87
type TableSectionProps = {
@@ -28,7 +27,7 @@ const StyledSectionHeader = styled.div<{ isExpanded: boolean }>`
2827
`;
2928

3029
const StyledSection = styled.div<{ isExpanded: boolean }>`
31-
max-height: ${({ isExpanded }) => (isExpanded ? '1000px' : 0)};
30+
max-height: ${({ isExpanded }) => (isExpanded ? 'fit-content' : 0)};
3231
opacity: ${({ isExpanded }) => (isExpanded ? 1 : 0)};
3332
overflow: hidden;
3433
transition:

0 commit comments

Comments
 (0)