diff --git a/frontend/apps/artcraft-webapp/src/components/prompt-box/PromptBox.tsx b/frontend/apps/artcraft-webapp/src/components/prompt-box/PromptBox.tsx index 591f3990e2..608cd01bbd 100644 --- a/frontend/apps/artcraft-webapp/src/components/prompt-box/PromptBox.tsx +++ b/frontend/apps/artcraft-webapp/src/components/prompt-box/PromptBox.tsx @@ -323,24 +323,28 @@ export const PromptBox = forwardRef( }); }, [prompt, hasMentionItems, mentionRegex, mentionLabelMap, mentionItems]); + // Shared reference-image row, used both inline (gated by isImageRowVisible) + // and always-on in the fullscreen focus modal. + const imagePromptRowEl = supportsImagePrompts ? ( + + ) : null; + return (
- {isImageRowVisible && ( - - )} + {isImageRowVisible && imagePromptRowEl} {mediaReferenceRow} @@ -555,7 +559,17 @@ export const PromptBox = forwardRef(
- + + {modelSelector} + {leftToolbar} + + } + imagePromptRow={imagePromptRowEl} + > {hasMentionItems && mentionItems ? ( ( mentionItems={mentionItems} placeholder={placeholder} className="promptbox-scrollbar h-full min-h-0 w-full overflow-y-auto text-base-fg placeholder-base-fg/60" - style={{ maxHeight: "calc(70vh - 7rem)", resize: "none" }} + style={{ resize: "none" }} colorMap={mentionColorMap} onKeyDown={(e) => { if ( @@ -581,7 +595,6 @@ export const PromptBox = forwardRef(