fix(ui): keep animationParent mounted to prevent auto-animate ghost node bugs

This commit is contained in:
NimBold
2026-06-29 11:19:48 +03:30
parent d5e0caac33
commit e79d32af74
+4 -2
View File
@@ -460,6 +460,7 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter }) => {
</div> </div>
<div className="download-table-body"> <div className="download-table-body">
<div className="download-table-list" ref={animationParent}>
{sortedDownloads.length === 0 ? ( {sortedDownloads.length === 0 ? (
<div className="downloads-empty-state"> <div className="downloads-empty-state">
<ArrowDownCircle aria-hidden="true" /> <ArrowDownCircle aria-hidden="true" />
@@ -479,7 +480,7 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter }) => {
</div> </div>
</div> </div>
) : ( ) : (
<div className="download-table-list" ref={animationParent}> <>
{sortedDownloads.map((d, index) => ( {sortedDownloads.map((d, index) => (
<DownloadItemComponent <DownloadItemComponent
key={d.id} key={d.id}
@@ -495,11 +496,12 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter }) => {
/> />
))} ))}
<div className="flex-1 min-h-0 bg-transparent pointer-events-none" /> <div className="flex-1 min-h-0 bg-transparent pointer-events-none" />
</div> </>
)} )}
</div> </div>
</div> </div>
</div> </div>
</div>
{/* Floating Context Menu */} {/* Floating Context Menu */}
{contextMenu && contextItem && ( {contextMenu && contextItem && (