Fix SymbolsList not using half screen

This commit is contained in:
Eric NGUYEN 2022-10-03 19:35:41 +02:00
parent 935318d475
commit 7c8db92453

View file

@ -41,22 +41,25 @@ export function SymbolsSidebar(props: ISymbolsSidebarProps): JSX.Element {
} }
return ( return (
<div> <div className='h-full'>
<div ref={divRef} className='h-1/2 text-gray-800'> <div ref={divRef} className='h-1/2 text-gray-800'>
<List <List
className='List divide-y divide-black' className='List divide-y divide-black'
itemCount={containers.length} itemCount={containers.length}
itemSize={35} itemSize={35}
height={320} height={height}
width={'100%'} width={'100%'}
> >
{Row} {Row}
</List> </List>
</div> </div>
<SymbolProperties <div>
symbol={props.symbols.get(props.selectedSymbolId)} <SymbolProperties
symbols={props.symbols} symbol={props.symbols.get(props.selectedSymbolId)}
onChange={props.onPropertyChange} /> symbols={props.symbols}
onChange={props.onPropertyChange}
/>
</div>
</div> </div>
); );
} }