~cytrogen/masto-fe

01e362316c5273ab5ae6acaa44834260b731fe57 — ThibG 6 years ago 0828126
Do not scroll in the compose panel on single-column (#11093)

M app/javascript/mastodon/features/compose/components/compose_form.js => app/javascript/mastodon/features/compose/components/compose_form.js +2 -1
@@ 60,6 60,7 @@ class ComposeForm extends ImmutablePureComponent {
    onPickEmoji: PropTypes.func.isRequired,
    showSearch: PropTypes.bool,
    anyMedia: PropTypes.bool,
    singleColumn: PropTypes.bool,
  };

  static defaultProps = {


@@ 115,7 116,7 @@ class ComposeForm extends ImmutablePureComponent {
  }

  handleFocus = () => {
    if (this.composeForm) {
    if (this.composeForm && !this.props.singleColumn) {
      this.composeForm.scrollIntoView();
    }
  }

M app/javascript/mastodon/features/ui/components/compose_panel.js => app/javascript/mastodon/features/ui/components/compose_panel.js +1 -1
@@ 8,7 8,7 @@ const ComposePanel = () => (
  <div className='compose-panel'>
    <SearchContainer openInRoute />
    <NavigationContainer />
    <ComposeFormContainer />
    <ComposeFormContainer singleColumn />
    <LinkFooter withHotkeys />
  </div>
);