mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
console: fix quick add dropdown of add operation from allow-list
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8548 GitOrigin-RevId: 3b90caf1c7d0a36176a2708609b976f833f1be77
This commit is contained in:
parent
e317c1a53f
commit
a7053fd9b5
@ -134,6 +134,7 @@ export const QuickAdd = (props: QuickAddProps) => {
|
||||
className: 'z-[101]',
|
||||
},
|
||||
}}
|
||||
zIndex="z-[102]"
|
||||
items={[
|
||||
[...quickOperations, ...graphiqlQueries].map(operation => (
|
||||
<div
|
||||
|
@ -53,12 +53,14 @@ export interface DropdownMenuProps {
|
||||
portal?: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>;
|
||||
};
|
||||
items: React.ReactNode[][];
|
||||
zIndex?: string;
|
||||
}
|
||||
|
||||
export const DropdownMenu: React.FC<DropdownMenuProps> = ({
|
||||
children,
|
||||
items,
|
||||
options,
|
||||
zIndex = 'z-[101]',
|
||||
}) => (
|
||||
<DropdownMenuPrimitive.Root {...options?.root}>
|
||||
<DropdownMenuTrigger {...options?.trigger}>{children}</DropdownMenuTrigger>
|
||||
@ -66,7 +68,7 @@ export const DropdownMenu: React.FC<DropdownMenuProps> = ({
|
||||
<DropdownMenuPrimitive.Content
|
||||
align="start"
|
||||
{...options?.content}
|
||||
className="z-[101]"
|
||||
className={zIndex}
|
||||
>
|
||||
<div className="origin-top-left absolute left-0 z-10 mt-xs w-max rounded shadow-md bg-white ring-1 ring-gray-300 divide-y divide-gray-300 focus:outline-none">
|
||||
{items.map((group, groupIndex) => (
|
||||
|
Loading…
Reference in New Issue
Block a user