fix: 所有弹窗仅通过关闭按钮关闭,点击遮罩不再关闭

This commit is contained in:
jinghui committed 2026-11-19 09:10:51 +08:00
1 parent fa989d0220
commit 3c3d834806
7 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -214,7 +214,7 @@ export default function AIGenModal({ open, onClose, onSaved }) {
const noKey = providerInfo && !providerInfo.hasKey && !useCustom;
return (
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4" onClick={onClose}>
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4">
<div
className="bg-white dark:bg-gray-800 rounded-xl shadow-2xl w-[98vw] h-[98vh] max-w-none max-h-none overflow-hidden flex flex-col"
onClick={(e) => e.stopPropagation()}
@@ -510,7 +510,7 @@ export default function AIGenModal({ open, onClose, onSaved }) {
</button>
{showFolderPick && (
<>
<div className="fixed inset-0 z-10" onClick={() => setShowFolderPick(false)}></div>
<div className="fixed inset-0 z-10"></div>
<div className="absolute left-0 bottom-full mb-1 z-20 w-64 max-h-64 overflow-y-auto bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-xl p-1">
{flattenFolders(folders).map((f) => (
<button