Fixed z index issue when stream table was refreshing.

This commit is contained in:
SergeantPanda 2025-07-12 17:48:56 -05:00
parent 2da8273de6
commit 35d95c47c7
2 changed files with 13 additions and 2 deletions

View file

@ -27,7 +27,8 @@ const ConfirmationDialog = ({
cancelLabel = 'Cancel',
actionKey,
onSuppressChange,
size = 'md', // Add default size parameter - md is a medium width
size = 'md',
zIndex = 1000,
}) => {
const suppressWarning = useWarningsStore((s) => s.suppressWarning);
const isWarningSuppressed = useWarningsStore((s) => s.isWarningSuppressed);
@ -50,7 +51,14 @@ const ConfirmationDialog = ({
};
return (
<Modal opened={opened} onClose={onClose} title={title} size={size} centered>
<Modal
opened={opened}
onClose={onClose}
title={title}
size={size}
centered
zIndex={zIndex}
>
<Box mb={20}>{message}</Box>
{actionKey && (

View file

@ -447,6 +447,7 @@ const GroupManager = React.memo(({ isOpen, onClose }) => {
title="Group Manager"
size="lg"
scrollAreaComponent={ScrollArea.Autosize}
zIndex={2000}
>
<Stack>
<Alert icon={<AlertCircle size={16} />} color="blue" variant="light">
@ -631,6 +632,7 @@ This action cannot be undone.`}
actionKey="delete-group"
onSuppressChange={suppressWarning}
size="md"
zIndex={2100}
/>
<ConfirmationDialog
@ -652,6 +654,7 @@ This action cannot be undone.`}
actionKey="cleanup-groups"
onSuppressChange={suppressWarning}
size="md"
zIndex={2100}
/>
</>
);