diff --git a/frontend/src/components/DataGridLegacyCellContextMenu.tsx b/frontend/src/components/DataGridLegacyCellContextMenu.tsx index dda612cc..c8afbc00 100644 --- a/frontend/src/components/DataGridLegacyCellContextMenu.tsx +++ b/frontend/src/components/DataGridLegacyCellContextMenu.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { createPortal } from 'react-dom'; import { CopyOutlined, EditOutlined, UndoOutlined, VerticalAlignBottomOutlined } from '@ant-design/icons'; import { t } from '../i18n'; +import { APP_POPUP_Z_INDEX } from '../utils/overlayZIndex'; interface CellContextMenuState { visible: boolean; @@ -125,7 +126,7 @@ const DataGridLegacyCellContextMenu: React.FC ( position: 'fixed', left: cellContextMenu.x, top: cellContextMenu.y, - zIndex: 10000, + zIndex: APP_POPUP_Z_INDEX, }} onClick={(e) => e.stopPropagation()} > diff --git a/frontend/src/components/FloatingAIChatWindow.tsx b/frontend/src/components/FloatingAIChatWindow.tsx index b885df83..4ce6c191 100644 --- a/frontend/src/components/FloatingAIChatWindow.tsx +++ b/frontend/src/components/FloatingAIChatWindow.tsx @@ -1,5 +1,6 @@ import React, { useCallback, useMemo, useRef } from 'react'; -import { Button, Spin } from 'antd'; +import { createPortal } from 'react-dom'; +import { Button, ConfigProvider, Spin } from 'antd'; import { useStore } from '../store'; import { t } from '../i18n'; import { @@ -10,6 +11,7 @@ import { } from '../utils/detachedWindow'; import type { OverlayWorkbenchTheme } from '../utils/overlayWorkbenchTheme'; import { hasNativeDetachedWindowManager } from '../utils/nativeDetachedWindowHost'; +import { APP_POPUP_Z_INDEX } from '../utils/overlayZIndex'; import { useManagedPointerInteraction } from '../hooks/useManagedPointerInteraction'; import AIPanelErrorBoundary from './ai/AIPanelErrorBoundary'; @@ -129,8 +131,9 @@ const FloatingAIChatWindow: React.FC = ({ const isDark = theme === 'dark'; const bounds = windowState; - return ( -
+ const floatingWindow = ( + +