File tree 1 file changed +2
-3
lines changed
packages/twenty-front/src/modules/ui/layout/table/components
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
- import { ReactNode , useState } from 'react' ;
2
1
import { useTheme } from '@emotion/react' ;
3
2
import styled from '@emotion/styled' ;
3
+ import { ReactNode , useState } from 'react' ;
4
4
import { IconChevronDown , IconChevronUp } from 'twenty-ui' ;
5
-
6
5
import { TableBody } from './TableBody' ;
7
6
8
7
type TableSectionProps = {
@@ -28,7 +27,7 @@ const StyledSectionHeader = styled.div<{ isExpanded: boolean }>`
28
27
` ;
29
28
30
29
const StyledSection = styled . div < { isExpanded : boolean } > `
31
- max-height: ${ ( { isExpanded } ) => ( isExpanded ? '1000px ' : 0 ) } ;
30
+ max-height: ${ ( { isExpanded } ) => ( isExpanded ? 'fit-content ' : 0 ) } ;
32
31
opacity: ${ ( { isExpanded } ) => ( isExpanded ? 1 : 0 ) } ;
33
32
overflow: hidden;
34
33
transition:
You can’t perform that action at this time.
0 commit comments