add param negative conditioning tooltip

This commit is contained in:
Jennifer Player 2023-09-18 09:12:03 -04:00
parent 2ce07a4730
commit dc2e1a42bc

View File

@ -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