fix: 所有弹窗仅通过关闭按钮关闭,点击遮罩不再关闭
This commit is contained in:
1 parent
fa989d0220
commit
3c3d834806
7 files changed
+8
-8
No files matched your search
@@ -138,7 +138,7 @@ function VideoEditModal({ file, libraryId, onClose, onDone }) {
|
||||
const input = 'w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 text-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent';
|
||||
|
||||
return (
|
||||
<div className="fixed inset-0 z-50 bg-black bg-opacity-60 flex items-center justify-center p-4" onClick={busy ? undefined : onClose}>
|
||||
<div className="fixed inset-0 z-50 bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div className="bg-white dark:bg-gray-800 rounded-xl shadow-2xl w-full max-w-3xl max-h-[92vh] overflow-y-auto" onClick={(e) => e.stopPropagation()}>
|
||||
{/* 头部 */}
|
||||
<div className="flex items-center justify-between px-5 py-4 border-b border-gray-200 dark:border-gray-700 sticky top-0 bg-white dark:bg-gray-800 z-10">
|
||||
|
||||
Reference in new issue
Block a user