From 26b501386560de49ae65123dcf7ce2994a915d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 16 Oct 2017 23:32:13 +0200 Subject: [PATCH] Fix dual toot button wrong behavior after compose re-design --- .../features/compose/components/compose_form.js | 11 ++--------- app/javascript/styles/components.scss | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js index a443f2980d..05ee35cf39 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -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 { { - }{ - (filesAttached || !isWideView) ? '' : - intl.formatMessage(messages.publish) - } + }{intl.formatMessage(messages.publish)} ); @@ -273,7 +267,6 @@ export default class ComposeForm extends ImmutablePureComponent { text={publishText} onClick={this.handleSubmit} disabled={submitDisabled} - block /> diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss index 43d484e6e2..119e9feb06 100644 --- a/app/javascript/styles/components.scss +++ b/app/javascript/styles/components.scss @@ -468,7 +468,7 @@ .compose-form__publish__side-arm { padding: 0 !important; - width: 4em; + width: 36px; text-align: center; margin-right: 2px; }