Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(webv2): keep menus above dialogs opened from other dialogs
Josh Corbetta3544f50fb7d
diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts b/invokeai/frontend/webv2/src/platform/ui/theme/recipes.tsindex fb8907f02f..b88252b042 100644--- a/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts+++ b/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts@@ -609,12 +609,21 @@ export const comboboxSlotRecipe = defineSlotRecipe({},});+/**+ * Dialogs stack from the modal token, below the popover token menus and popovers use. zag copies a menu's z-index to its+ * positioner once, before the layer index lands, so a menu opened in a second, stacked dialog sat under that dialog.+ */+const DIALOG_LAYER = { '--dialog-z-index': 'zIndex.modal' } as const;+export const dialogSlotRecipe = defineSlotRecipe({...chakraSlotRecipes.dialog,base: {...chakraSlotRecipes.dialog.base,+ backdrop: { ...chakraSlotRecipes.dialog.base?.backdrop, ...DIALOG_LAYER },+ positioner: { ...chakraSlotRecipes.dialog.base?.positioner, ...DIALOG_LAYER },content: {...chakraSlotRecipes.dialog.base?.content,+ ...DIALOG_LAYER,bg: 'bg.subtle',borderColor: 'border.subtle',borderWidth: '1px',