Switch to compose view when tapping 'mention' in dropdown on mobile

This commit is contained in:
blackle
2017-01-08 05:04:01 -05:00
parent 69643338f6
commit d64c454cfe
6 changed files with 25 additions and 5 deletions

View File

@ -11,6 +11,7 @@ import Notifications from '../notifications';
import { debounce } from 'react-decoration';
import { uploadCompose } from '../../actions/compose';
import { connect } from 'react-redux';
import { isMobile } from '../../is_mobile'
const UI = React.createClass({
@ -64,11 +65,9 @@ const UI = React.createClass({
},
render () {
const layoutBreakpoint = 1024;
let mountedColumns;
if (this.state.width <= layoutBreakpoint) {
if (isMobile(this.state.width)) {
mountedColumns = (
<ColumnsArea>
{this.props.children}