replace text input by texterarea (#3473)

* #3472 replace text input by texterarea

* background color change in dark mode

* box shadow and hide overflow

* added tooltip in overflow text

* resolved comment on #3473

* resolved comments in #3473
This commit is contained in:
Jeet Desai
2024-01-18 14:19:36 +05:30
committed by GitHub
parent ceddd211cf
commit 74a54da403
5 changed files with 103 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import { useSaveFieldEditModeValue } from '@/object-record/field/hooks/useSaveFieldEditModeValue';
import { TextInput } from '@/ui/field/input/components/TextInput';
import { FieldTextAreaOverlay } from '@/ui/field/input/components/FieldTextAreaOverlay';
import { TextAreaInput } from '@/ui/field/input/components/TextAreaInput';
import { FieldInputOverlay } from '../../../../../ui/field/input/components/FieldInputOverlay';
import { usePersistField } from '../../../hooks/usePersistField';
import { useTextField } from '../../hooks/useTextField';
@ -55,8 +55,8 @@ export const TextFieldInput = ({
};
return (
<FieldInputOverlay>
<TextInput
<FieldTextAreaOverlay>
<TextAreaInput
placeholder={fieldDefinition.metadata.placeHolder}
autoFocus
value={initialValue}
@ -68,6 +68,6 @@ export const TextFieldInput = ({
hotkeyScope={hotkeyScope}
onChange={handleChange}
/>
</FieldInputOverlay>
</FieldTextAreaOverlay>
);
};