]> cat aescling's git repositories - mastodon.git/commitdiff
Allow multi-line image descriptions. (Glitch)
authorBen Lubar <ben.lubar@gmail.com>
Wed, 13 Feb 2019 18:51:33 +0000 (12:51 -0600)
committerThibG <thib@sitedethib.com>
Sun, 17 Feb 2019 14:19:12 +0000 (15:19 +0100)
app/javascript/flavours/glitch/features/composer/upload_form/item/index.js
app/javascript/flavours/glitch/styles/components/composer.scss

index 93fa4e39e1a90c0a568ca7fcaef81d36dc19637b..4f5f66f04f42c9a8bf6b9e3863c0530fc07759a1 100644 (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>
index 2267b798c147d5e4950c713ae4de615601ad8576..fa24cabf271e9309070e40ad53c94a8cd697a84a 100644 (file)
     background-repeat: no-repeat;
     overflow: hidden;
 
-    input {
+    textarea {
       display: block;
       position: absolute;
       box-sizing: border-box;
 
   &.active {
     & > div {
-      input { opacity: 1 }
+      textarea { opacity: 1 }
     }
   }
 }