Fix dual toot button wrong behavior after compose re-design
This commit is contained in:
parent
7364b26e4b
commit
4421f6598f
|
@ -162,7 +162,6 @@ export default class ComposeForm extends ImmutablePureComponent {
|
||||||
const text = [this.props.spoiler_text, countableText(this.props.text), maybeEye].join('');
|
const text = [this.props.spoiler_text, countableText(this.props.text), maybeEye].join('');
|
||||||
|
|
||||||
const secondaryVisibility = this.props.settings.get('side_arm');
|
const secondaryVisibility = this.props.settings.get('side_arm');
|
||||||
const isWideView = this.props.settings.get('stretch');
|
|
||||||
let showSideArm = secondaryVisibility !== 'none';
|
let showSideArm = secondaryVisibility !== 'none';
|
||||||
|
|
||||||
let publishText = '';
|
let publishText = '';
|
||||||
|
@ -182,14 +181,9 @@ export default class ComposeForm extends ImmutablePureComponent {
|
||||||
{
|
{
|
||||||
<i
|
<i
|
||||||
className={`fa fa-${privacyIcons[this.props.privacy]}`}
|
className={`fa fa-${privacyIcons[this.props.privacy]}`}
|
||||||
style={{
|
style={{ paddingRight: '5px' }}
|
||||||
paddingRight: (filesAttached || !isWideView) ? '0' : '5px',
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
}{
|
}{intl.formatMessage(messages.publish)}
|
||||||
(filesAttached || !isWideView) ? '' :
|
|
||||||
intl.formatMessage(messages.publish)
|
|
||||||
}
|
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -273,7 +267,6 @@ export default class ComposeForm extends ImmutablePureComponent {
|
||||||
text={publishText}
|
text={publishText}
|
||||||
onClick={this.handleSubmit}
|
onClick={this.handleSubmit}
|
||||||
disabled={submitDisabled}
|
disabled={submitDisabled}
|
||||||
block
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -468,7 +468,7 @@
|
||||||
|
|
||||||
.compose-form__publish__side-arm {
|
.compose-form__publish__side-arm {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
width: 4em;
|
width: 36px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue