This commit is contained in:
2022-07-12 11:18:31 +02:00
parent 0d92db94b7
commit d373a20bb1
3 changed files with 8 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
padding: 8px 0 8px 12px; padding: 8px 0 8px 12px;
color: #000; color: #000;
outline: none; outline: none;
height: 36px;
} }
.inputWrapper { .inputWrapper {

View File

@@ -2,8 +2,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10px; gap: 10px;
margin-bottom: 24px; margin-bottom: 28px;
cursor: pointer; cursor: pointer;
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif;
font-weight: 500; font-weight: 500;
@@ -11,3 +10,8 @@
line-height: 20px; line-height: 20px;
color: #0080FF; color: #0080FF;
} }
.input {
margin-bottom: 16px;
width: 276px;
}

View File

@@ -68,6 +68,7 @@ const SuperEditableSpan: React.FC<SuperEditableSpanType> = ({
autoFocus={autoFocus || true} autoFocus={autoFocus || true}
onBlur={onBlurCallback} onBlur={onBlurCallback}
onEnter={onEnterCallback} onEnter={onEnterCallback}
className={s.input}
{...restProps} // отдаём инпуту остальные пропсы если они есть (value например там внутри) {...restProps} // отдаём инпуту остальные пропсы если они есть (value например там внутри)
/> />
) : ( ) : (