mirror of
https://github.com/funamitech/mastodon
synced 2024-12-03 17:28:35 +09:00
Allow multi-line image descriptions. (Glitch)
This commit is contained in:
parent
a2b4b82f0f
commit
fa9635c741
@ -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>
|
||||
|
@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user