forked from treehouse/mastodon
Allow multi-line image descriptions. (Glitch)
parent
a2b4b82f0f
commit
fa9635c741
|
@ -169,13 +169,12 @@ export default class ComposerUploadFormItem extends React.PureComponent {
|
||||||
</div>
|
</div>
|
||||||
<label>
|
<label>
|
||||||
<span style={{ display: 'none' }}><FormattedMessage {...messages.description} /></span>
|
<span style={{ display: 'none' }}><FormattedMessage {...messages.description} /></span>
|
||||||
<input
|
<textarea
|
||||||
maxLength={420}
|
maxLength={420}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
placeholder={intl.formatMessage(messages.description)}
|
placeholder={intl.formatMessage(messages.description)}
|
||||||
type='text'
|
|
||||||
value={description}
|
value={description}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -262,7 +262,7 @@
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
input {
|
textarea {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -294,7 +294,7 @@
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
& > div {
|
& > div {
|
||||||
input { opacity: 1 }
|
textarea { opacity: 1 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue