Allow multi-line image descriptions. (Glitch)

lolsob-rspec
Ben Lubar 2019-02-13 12:51:33 -06:00 committed by ThibG
parent c15f676bc9
commit 9ad1ca9a2b
2 changed files with 3 additions and 4 deletions

View File

@ -169,13 +169,12 @@ export default class ComposerUploadFormItem extends React.PureComponent {
</div>
<label>
<span style={{ display: 'none' }}><FormattedMessage {...messages.description} /></span>
<input
<textarea
maxLength={420}
onBlur={handleBlur}
onChange={handleChange}
onFocus={handleFocus}
placeholder={intl.formatMessage(messages.description)}
type='text'
value={description}
/>
</label>

View File

@ -262,7 +262,7 @@
background-repeat: no-repeat;
overflow: hidden;
input {
textarea {
display: block;
position: absolute;
box-sizing: border-box;
@ -294,7 +294,7 @@
&.active {
& > div {
input { opacity: 1 }
textarea { opacity: 1 }
}
}
}