have input rows auto size adjust
This commit is contained in:
parent
d5f72e9f8d
commit
244d649595
|
@ -11,7 +11,7 @@ const styles = theme => ({
|
|||
container: {
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(12, [col] 1fr)',
|
||||
gridTemplateRows: '24px 24px 36px'
|
||||
gridTemplateRows: 'auto auto 5px'
|
||||
},
|
||||
margin: {
|
||||
margin: theme.spacing.unit,
|
||||
|
@ -76,6 +76,7 @@ function Input({
|
|||
classes,
|
||||
idFor,
|
||||
isRequired,
|
||||
InputProps,
|
||||
label,
|
||||
bottomRightLabel,
|
||||
bottomLeftLabel,
|
||||
|
@ -95,6 +96,7 @@ function Input({
|
|||
{ labelForm }
|
||||
<InputBase
|
||||
id={idFor}
|
||||
InputProps={InputProps}
|
||||
placeholder={placeholder}
|
||||
name={name}
|
||||
onChange={onChange}
|
||||
|
|
|
@ -313,25 +313,21 @@ const SubmissionSection = ({ classes, history }) => {
|
|||
}
|
||||
label="Autoplay video?"
|
||||
/>
|
||||
<TextField
|
||||
className={classes.firstHalf}
|
||||
<StatusTextField
|
||||
className={fullWidth}
|
||||
InputProps={{
|
||||
style: { height: '100%' }
|
||||
}}
|
||||
id="description"
|
||||
idFor="Full description"
|
||||
name="description"
|
||||
multiline
|
||||
label="Enter extended description (markdown)"
|
||||
placeholder="Enter extended description here (markdown)"
|
||||
margin="normal"
|
||||
variant="outlined"
|
||||
label="Full description"
|
||||
bottomLeftLabel="Markdown available"
|
||||
placeholder="Full description"
|
||||
onChange={handleChange}
|
||||
onBlur={handleBlur}
|
||||
value={values.description || ''}
|
||||
multiline={true}
|
||||
/>
|
||||
<div className={classnames(secondHalf, classes.markdown)}>
|
||||
<ReactMarkdown source={values.description} />
|
||||
</div>
|
||||
<StatusTextField
|
||||
className={fullWidth}
|
||||
isRequired={true}
|
||||
|
@ -397,6 +393,9 @@ const SubmissionSection = ({ classes, history }) => {
|
|||
}
|
||||
style={{display: 'none'}}
|
||||
/>
|
||||
<div className={classes.markdown}>
|
||||
<ReactMarkdown source={values.description} />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue