1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

[dir view] 'column' mode: fixup for the bug 'only render the first 100 items for a folder with more than 100 items' (#5929)

This commit is contained in:
llj
2024-01-30 17:49:31 +08:00
committed by GitHub
parent d344378424
commit 1109091348
2 changed files with 3 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ const propTypes = {
onFileTagChanged: PropTypes.func,
showDirentDetail: PropTypes.func.isRequired,
fullDirentList: PropTypes.array,
onItemsScroll: PropTypes.func.isRequired
};
class DirColumnView extends React.Component {
@@ -173,7 +174,7 @@ class DirColumnView extends React.Component {
onItemsMove={this.props.onItemsMove}
/>
<div className="dir-content-resize" onMouseDown={this.onResizeMouseDown}></div>
<div className="dir-content-main" style={{userSelect: select, flex: mainFlex}}>
<div className="dir-content-main" style={{userSelect: select, flex: mainFlex}} onScroll={this.props.isViewFile ? () => {} : this.props.onItemsScroll}>
{this.props.isViewFile ? (
<DirColumnFile
path={this.props.path}

View File

@@ -332,6 +332,7 @@ class LibContentContainer extends React.Component {
onItemsDelete={this.props.onItemsDelete}
onFileTagChanged={this.props.onFileTagChanged}
showDirentDetail={this.props.showDirentDetail}
onItemsScroll={this.onItemsScroll}
/>
)}
</Fragment>