]> cat aescling's git repositories - mastodon.git/commitdiff
Fix dual toot button wrong behavior after compose re-design
authorOndřej Hruška <ondra@ondrovo.com>
Mon, 16 Oct 2017 21:32:13 +0000 (23:32 +0200)
committerOndřej Hruška <ondra@ondrovo.com>
Mon, 16 Oct 2017 21:32:13 +0000 (23:32 +0200)
app/javascript/mastodon/features/compose/components/compose_form.js
app/javascript/styles/components.scss

index a443f2980d54bdd3f26b942898481158df8ea61b..05ee35cf39fd6628a7e5182b095137b06224aa10 100644 (file)
@@ -162,7 +162,6 @@ export default class ComposeForm extends ImmutablePureComponent {
     const text     = [this.props.spoiler_text, countableText(this.props.text), maybeEye].join('');
 
     const secondaryVisibility = this.props.settings.get('side_arm');
-    const isWideView = this.props.settings.get('stretch');
     let showSideArm = secondaryVisibility !== 'none';
 
     let publishText = '';
@@ -182,14 +181,9 @@ export default class ComposeForm extends ImmutablePureComponent {
           {
             <i
               className={`fa fa-${privacyIcons[this.props.privacy]}`}
-              style={{
-                paddingRight: (filesAttached || !isWideView) ? '0' : '5px',
-              }}
+              style={{ paddingRight: '5px' }}
             />
-          }{
-            (filesAttached || !isWideView) ? '' :
-              intl.formatMessage(messages.publish)
-          }
+          }{intl.formatMessage(messages.publish)}
         </span>
       );
 
@@ -273,7 +267,6 @@ export default class ComposeForm extends ImmutablePureComponent {
               text={publishText}
               onClick={this.handleSubmit}
               disabled={submitDisabled}
-              block
             />
           </div>
         </div>
index 43d484e6e278a61c578f008292d207c90966dc97..119e9feb06ace03a666c1ca2494d5e802f947547 100644 (file)
 
 .compose-form__publish__side-arm {
   padding: 0 !important;
-  width: 4em;
+  width: 36px;
   text-align: center;
   margin-right: 2px;
 }
This page took 0.030407 seconds and 3 git commands to generate.