Skip to content

Commit

Permalink
fix: overflow issue in tableSection (twentyhq#7377)
Browse files Browse the repository at this point in the history
this PR fixes twentyhq#7327

---------

Co-authored-by: ehconitin <[email protected]>
  • Loading branch information
2 people authored and harshit078 committed Oct 14, 2024
1 parent 11f68fe commit e5395a8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ReactNode, useState } from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { ReactNode, useState } from 'react';
import { IconChevronDown, IconChevronUp } from 'twenty-ui';

import { TableBody } from './TableBody';

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

const StyledSection = styled.div<{ isExpanded: boolean }>`
max-height: ${({ isExpanded }) => (isExpanded ? '1000px' : 0)};
max-height: ${({ isExpanded }) => (isExpanded ? 'fit-content' : 0)};
opacity: ${({ isExpanded }) => (isExpanded ? 1 : 0)};
overflow: hidden;
transition:
Expand Down

0 comments on commit e5395a8

Please sign in to comment.