Skip to content

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.

fix(generate): visible hover for dynamic prompt rows

Josh Corbett92409a479f71
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/promptFields/DynamicPromptsPanel.tsx b/invokeai/frontend/webv2/src/features/generation/ui/promptFields/DynamicPromptsPanel.tsx
index 8e9f866e1f..e4198ccfdf 100644
--- a/invokeai/frontend/webv2/src/features/generation/ui/promptFields/DynamicPromptsPanel.tsx
+++ b/invokeai/frontend/webv2/src/features/generation/ui/promptFields/DynamicPromptsPanel.tsx
@@ -23,6 +23,9 @@ import { useTranslation } from 'react-i18next';
/** Rendering every row of a 10,000-prompt expansion would cost more than it tells the user. */
const MAX_PREVIEW_ROWS = 200;
const TABULAR_NUMS = { fontVariantNumeric: 'tabular-nums' } as const;
+// The rows sit on the popover's `bg.muted` surface, where the row recipe's
+// `bg.muted/60` hover is invisible — hover needs the next surface step.
+const PROMPT_ROW_HOVER_PROPS = { bg: 'bg.emphasized/60' } as const;
const MENU_POSITIONING = { placement: 'bottom-start' } as const;
const SWITCH_CHECKED = { bg: 'accent.solid' } as const;
@@ -256,6 +259,7 @@ const DynamicPromptRow = ({
textStyle="xs"
title={t('widgets.generate.dynamicPrompts.usePrompt')}
whiteSpace="nowrap"
+ _hover={PROMPT_ROW_HOVER_PROPS}
>
<button type="button" onClick={handleClick}>
<Text as="span" color="fg.subtle" css={TABULAR_NUMS} fontSize="2xs">