Fix/Autocorrect On Git And Message Overlap (#401)
* hive(01-add-mobile-autocorrect-to-commit-message-input): Added mobile autocorrect to commit message input. * hive(02-add-mobile-autocorrect-to-pr-title-inputs): Added mobile autocorrect to PR title inputs in Pul * hive(03-add-mobile-autocorrect-to-pr-description-textareas): Added mobile autocorrect to PR description textare * Fix chat last message overlap
This commit is contained in:
@@ -7,6 +7,7 @@ interface CommitInputProps {
|
||||
onChange: (value: string) => void;
|
||||
placeholder?: string;
|
||||
disabled?: boolean;
|
||||
hasTouchInput?: boolean;
|
||||
}
|
||||
|
||||
const MIN_HEIGHT = 38; // Single line height
|
||||
@@ -17,6 +18,7 @@ export const CommitInput: React.FC<CommitInputProps> = ({
|
||||
onChange,
|
||||
placeholder = 'Commit message',
|
||||
disabled = false,
|
||||
hasTouchInput = false,
|
||||
}) => {
|
||||
const textareaRef = React.useRef<HTMLTextAreaElement>(null);
|
||||
|
||||
@@ -39,6 +41,9 @@ export const CommitInput: React.FC<CommitInputProps> = ({
|
||||
placeholder={placeholder}
|
||||
rows={1}
|
||||
disabled={disabled}
|
||||
autoCorrect={hasTouchInput ? 'on' : 'off'}
|
||||
autoCapitalize={hasTouchInput ? 'sentences' : 'off'}
|
||||
spellCheck={hasTouchInput ? true : false}
|
||||
className={cn(
|
||||
'rounded-lg bg-background/80 resize-none overflow-y-auto',
|
||||
disabled && 'opacity-50'
|
||||
|
||||
Reference in New Issue
Block a user