mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add param negative conditioning tooltip
This commit is contained in:
parent
2ce07a4730
commit
dc2e1a42bc
@ -9,6 +9,7 @@ import { ChangeEvent, KeyboardEvent, memo, useCallback, useRef } from 'react';
|
|||||||
import { flushSync } from 'react-dom';
|
import { flushSync } from 'react-dom';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useFeatureStatus } from '../../../../system/hooks/useFeatureStatus';
|
import { useFeatureStatus } from '../../../../system/hooks/useFeatureStatus';
|
||||||
|
import IAIInformationalPopover from 'common/components/IAIInformationalPopover';
|
||||||
|
|
||||||
const ParamNegativeConditioning = () => {
|
const ParamNegativeConditioning = () => {
|
||||||
const negativePrompt = useAppSelector(
|
const negativePrompt = useAppSelector(
|
||||||
@ -81,18 +82,20 @@ const ParamNegativeConditioning = () => {
|
|||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
onSelect={handleSelectEmbedding}
|
onSelect={handleSelectEmbedding}
|
||||||
>
|
>
|
||||||
<IAITextarea
|
<IAIInformationalPopover details="paramNegativeConditioning">
|
||||||
id="negativePrompt"
|
<IAITextarea
|
||||||
name="negativePrompt"
|
id="negativePrompt"
|
||||||
ref={promptRef}
|
name="negativePrompt"
|
||||||
value={negativePrompt}
|
ref={promptRef}
|
||||||
placeholder={t('parameters.negativePromptPlaceholder')}
|
value={negativePrompt}
|
||||||
onChange={handleChangePrompt}
|
placeholder={t('parameters.negativePromptPlaceholder')}
|
||||||
resize="vertical"
|
onChange={handleChangePrompt}
|
||||||
fontSize="sm"
|
resize="vertical"
|
||||||
minH={16}
|
fontSize="sm"
|
||||||
{...(isEmbeddingEnabled && { onKeyDown: handleKeyDown })}
|
minH={16}
|
||||||
/>
|
{...(isEmbeddingEnabled && { onKeyDown: handleKeyDown })}
|
||||||
|
/>
|
||||||
|
</IAIInformationalPopover>
|
||||||
</ParamEmbeddingPopover>
|
</ParamEmbeddingPopover>
|
||||||
{!isOpen && isEmbeddingEnabled && (
|
{!isOpen && isEmbeddingEnabled && (
|
||||||
<Box
|
<Box
|
||||||
|
Loading…
x
Reference in New Issue
Block a user