File tree 1 file changed +18
-20
lines changed
tdrive/frontend/src/app/components/file-uploads/pending-root-components
1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -127,27 +127,25 @@ const PendingRootList = ({
127
127
modalExpanded = { modalExpanded }
128
128
/>
129
129
130
- { modalExpanded && (
131
- < div className = "modal-body" >
132
- < div className = "bg-white px-4 py-2" >
133
- < PerfectScrollbar
134
- options = { { suppressScrollX : true , suppressScrollY : false } }
135
- component = "div"
136
- style = { { width : '100%' , maxHeight : 300 } }
137
- >
138
- { keys . map ( key => (
139
- < PendingRootRow key = { key } rootKey = { key } root = { roots [ key ] } />
140
- ) ) }
141
- </ PerfectScrollbar >
142
- </ div >
143
- < ModalFooter
144
- pauseOrResumeUpload = { pauseOrResumeUpload }
145
- cancelUpload = { cancelUpload }
146
- isPaused = { isPaused }
147
- uploadingCount = { uploadingCount + pausedCount }
148
- />
130
+ < div className = { `modal-body ${ modalExpanded ? 'block' : 'hidden' } ` } >
131
+ < div className = "bg-white px-4 py-2" >
132
+ < PerfectScrollbar
133
+ options = { { suppressScrollX : true , suppressScrollY : false } }
134
+ component = "div"
135
+ style = { { width : '100%' , maxHeight : 300 } }
136
+ >
137
+ { keys . map ( key => (
138
+ < PendingRootRow key = { key } rootKey = { key } root = { roots [ key ] } />
139
+ ) ) }
140
+ </ PerfectScrollbar >
149
141
</ div >
150
- ) }
142
+ < ModalFooter
143
+ pauseOrResumeUpload = { pauseOrResumeUpload }
144
+ cancelUpload = { cancelUpload }
145
+ isPaused = { isPaused }
146
+ uploadingCount = { uploadingCount + pausedCount }
147
+ />
148
+ </ div >
151
149
</ div >
152
150
) }
153
151
</ >
You can’t perform that action at this time.
0 commit comments