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 { useState } from 'react'
import { FileBrowser, useFsListing } from './FileBrowser'
@@ -30,7 +31,7 @@ export function FolderPicker({ value, onChange, onClose }: Props) {
onClose()
}
return (
return createPortal(
<div aria-modal="true" className="fixed inset-0 z-[60] flex items-center justify-center bg-black/40 backdrop-blur-[3px] p-4">
<div className="flex h-[70vh] w-full max-w-2xl flex-col overflow-hidden glass-overlay">
<div className="border-b border-line px-5 py-3">
@@ -80,6 +81,7 @@ export function FolderPicker({ value, onChange, onClose }: Props) {
</button>
</div>
</div>
</div>
</div>,
document.body,
)
}