fix: overflow issue in tableSection (#7377)
this PR fixes #7327 --------- Co-authored-by: ehconitin <nitinkoche03@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a8da0e2bc8
commit
444cd3f03f
@ -1,8 +1,7 @@
|
|||||||
import { ReactNode, useState } from 'react';
|
|
||||||
import { useTheme } from '@emotion/react';
|
import { useTheme } from '@emotion/react';
|
||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
|
import { ReactNode, useState } from 'react';
|
||||||
import { IconChevronDown, IconChevronUp } from 'twenty-ui';
|
import { IconChevronDown, IconChevronUp } from 'twenty-ui';
|
||||||
|
|
||||||
import { TableBody } from './TableBody';
|
import { TableBody } from './TableBody';
|
||||||
|
|
||||||
type TableSectionProps = {
|
type TableSectionProps = {
|
||||||
@ -28,7 +27,7 @@ const StyledSectionHeader = styled.div<{ isExpanded: boolean }>`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledSection = 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)};
|
opacity: ${({ isExpanded }) => (isExpanded ? 1 : 0)};
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition:
|
transition:
|
||||||
|
|||||||
Reference in New Issue
Block a user