We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5301ab4 commit 6f65f6aCopy full SHA for 6f65f6a
1 file changed
resources/scripts/components/server/files/FileManagerContainer.tsx
@@ -79,7 +79,21 @@ export default () => {
79
:
80
<CSSTransition classNames={'fade'} timeout={250} appear={true} in={true}>
81
<div>
82
- {
+ {files.length > 250 ?
83
+ <React.Fragment>
84
+ <div className={'rounded bg-yellow-400 mb-px p-3'}>
85
+ <p className={'text-yellow-900 text-sm text-center'}>
86
+ This directory is too large to display in the browser, limiting
87
+ the output to the first 250 files.
88
+ </p>
89
+ </div>
90
+ {
91
+ files.slice(0, 500).map(file => (
92
+ <FileObjectRow key={file.uuid} file={file}/>
93
+ ))
94
+ }
95
+ </React.Fragment>
96
+ :
97
files.map(file => (
98
<FileObjectRow key={file.uuid} file={file}/>
99
))
0 commit comments