🐛 Fix bug unable to fetch new item when collapsed the upload viewer

This commit is contained in:
lethemanh
2025-03-03 15:56:13 +07:00
committed by Anton Shepilov
parent 49c4f10d37
commit 6f762ecefa
@@ -127,27 +127,25 @@ const PendingRootList = ({
modalExpanded={modalExpanded} modalExpanded={modalExpanded}
/> />
{modalExpanded && ( <div className={`modal-body ${modalExpanded ? 'block' : 'hidden'}`}>
<div className="modal-body"> <div className="bg-white px-4 py-2">
<div className="bg-white px-4 py-2"> <PerfectScrollbar
<PerfectScrollbar options={{ suppressScrollX: true, suppressScrollY: false }}
options={{ suppressScrollX: true, suppressScrollY: false }} component="div"
component="div" style={{ width: '100%', maxHeight: 300 }}
style={{ width: '100%', maxHeight: 300 }} >
> {keys.map(key => (
{keys.map(key => ( <PendingRootRow key={key} rootKey={key} root={roots[key]} />
<PendingRootRow key={key} rootKey={key} root={roots[key]} /> ))}
))} </PerfectScrollbar>
</PerfectScrollbar>
</div>
<ModalFooter
pauseOrResumeUpload={pauseOrResumeUpload}
cancelUpload={cancelUpload}
isPaused={isPaused}
uploadingCount={uploadingCount + pausedCount}
/>
</div> </div>
)} <ModalFooter
pauseOrResumeUpload={pauseOrResumeUpload}
cancelUpload={cancelUpload}
isPaused={isPaused}
uploadingCount={uploadingCount + pausedCount}
/>
</div>
</div> </div>
)} )}
</> </>