Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/SenseNet/sn-client into …
Browse files Browse the repository at this point in the history
…1591-Display-content-type-of-the-current-content
  • Loading branch information
VargaJoe committed Mar 13, 2024
2 parents 0ebdaba + c91948e commit ea52125
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/sensenet/src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
)
}
return (
<MuiList key={key} style={{ display: 'flex', paddingTop: '0px', paddingBottom: '0px', flexDirection: 'column' }}>
<MuiList key={key} style={style}>
{renderItem(treeData.children?.[index], index.toString(), 10)}
</MuiList>
)
Expand All @@ -229,14 +229,13 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
flexGrow: 2,
flexShrink: 0,
borderRight: '1px solid rgba(128,128,128,.2)',
overflow: 'unset',
}}>
<AutoSizer>
{({ height, width }) => (
<List
height={height}
width={width}
overscanRowCount={10000}
overscanRowCount={11000}
ref={listRef}
rowHeight={rowHeightFunc}
onRowsRendered={() => {
Expand All @@ -246,7 +245,6 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
}
setElements([...loadMoreElements])
}}
containerStyle={{ overflow: 'unset' }}
rowRenderer={rowRenderer}
rowCount={itemCount}
style={{ outline: 'none' }}
Expand Down

0 comments on commit ea52125

Please sign in to comment.