Add responsive panels to the single-column layout (#10820)
* Add responsive panels to the single-column layout * Fixes * Fix not being able to save the preference * Fix code style issues * Set max-height on the compose textarea and add a link to relationship manager
This commit is contained in:
		@@ -4,6 +4,7 @@ import { evictStatus } from '../storage/modifier';
 | 
			
		||||
 | 
			
		||||
import { deleteFromTimelines } from './timelines';
 | 
			
		||||
import { importFetchedStatus, importFetchedStatuses, importAccount, importStatus } from './importer';
 | 
			
		||||
import { ensureComposeIsVisible } from './compose';
 | 
			
		||||
 | 
			
		||||
export const STATUS_FETCH_REQUEST = 'STATUS_FETCH_REQUEST';
 | 
			
		||||
export const STATUS_FETCH_SUCCESS = 'STATUS_FETCH_SUCCESS';
 | 
			
		||||
@@ -139,7 +140,7 @@ export function redraft(status, raw_text) {
 | 
			
		||||
  };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export function deleteStatus(id, router, withRedraft = false) {
 | 
			
		||||
export function deleteStatus(id, routerHistory, withRedraft = false) {
 | 
			
		||||
  return (dispatch, getState) => {
 | 
			
		||||
    let status = getState().getIn(['statuses', id]);
 | 
			
		||||
 | 
			
		||||
@@ -156,10 +157,7 @@ export function deleteStatus(id, router, withRedraft = false) {
 | 
			
		||||
 | 
			
		||||
      if (withRedraft) {
 | 
			
		||||
        dispatch(redraft(status, response.data.text));
 | 
			
		||||
 | 
			
		||||
        if (!getState().getIn(['compose', 'mounted'])) {
 | 
			
		||||
          router.push('/statuses/new');
 | 
			
		||||
        }
 | 
			
		||||
        ensureComposeIsVisible(getState, routerHistory);
 | 
			
		||||
      }
 | 
			
		||||
    }).catch(error => {
 | 
			
		||||
      dispatch(deleteStatusFail(id, error));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user