Fixed overlay windows rendering below other UI

This commit is contained in:
patben8 committed 2026-09-25 15:23:16 +02:00
1 parent 2810f24563
commit be80e572e5
16 files changed
+104 -65

No files matched your search

+4 -2
View File
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { useEffect, useRef, useState } from 'react'
import { useQuery, useQueryClient } from '@tanstack/react-query'
import { api, type ImportPreview, type JobStatus } from '../api'
@@ -141,7 +142,7 @@ export function ImportDialog({ playlistId, deviceLabel, onClose, onDone, onError
const finished = job != null && job.state !== 'running'
const pct = job && job.total > 0 ? Math.min(100, (job.done / job.total) * 100) : null
return (
return createPortal(
<>
{browsing && (
<FolderPicker
@@ -322,6 +323,7 @@ export function ImportDialog({ playlistId, deviceLabel, onClose, onDone, onError
</div>
</div>
</div>
</>
</>,
document.body,
)
}